<div dir="ltr"><span style="font-size:small;line-height:20px">Hi Tim, </span><div style="font-size:small;line-height:20px"><br></div><div style="font-size:small;line-height:20px">Yes, opened an issue. <a href="http://dev.gbif.org/issues/browse/POR-2809">http://dev.gbif.org/issues/browse/POR-2809</a></div><div style="font-size:small;line-height:20px"><br></div><div style="font-size:small;line-height:20px">-Scott</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 31, 2015 at 11:52 AM Tim Robertson <<a href="mailto:trobertson@gbif.org">trobertson@gbif.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I agree, that seems like incorrect behaviour Scott - I would expect 404 too.<div>  <a href="http://www.gbif.org/dataset/3f8a1297-3259-4700-91fc-acc4170b27ce/stats" target="_blank">http://www.gbif.org/dataset/3f8a1297-3259-4700-91fc-acc4170b27ce/stats</a></div><div><br></div><div>Can you please file an issue?  I am on my phone</div><div><br></div><div>In haste,</div><div>Tim</div><div><br><div></div></div></div><div style="word-wrap:break-word"><div><div><div>On 31 Jul 2015, at 19:52, Scott Chamberlain <<a href="mailto:myrmecocystus@gmail.com" target="_blank">myrmecocystus@gmail.com</a>> wrote:</div><br></div></div></div><div style="word-wrap:break-word"><div><div><blockquote type="cite"><div dir="ltr">Hi all, <div><br></div><div>I am curious as to the reasoning behind the 204 response for some API requests. For example: </div><div><br></div><div><div>curl -v '<a href="http://api.gbif.org/v1/dataset/3f8a1297-3259-4700-91fc-acc4170b27ce/metrics" target="_blank">http://api.gbif.org/v1/dataset/3f8a1297-3259-4700-91fc-acc4170b27ce/metrics</a>'</div><div><br></div></div><div><div>< HTTP/1.1 204 No Content</div><div>< Content-Type: application/json</div><div>< Access-Control-Allow-Origin: *</div><div>* Server Jetty(9.2.z-SNAPSHOT) is not blacklisted</div><div>< Server: Jetty(9.2.z-SNAPSHOT)</div><div>< x-api-url: /v1/dataset/3f8a1297-3259-4700-91fc-acc4170b27ce/metrics</div><div>< Accept-Ranges: bytes</div><div>< Date: Fri, 31 Jul 2015 17:46:32 GMT</div><div>< X-Varnish: 1108784184</div><div>< Age: 0</div><div>< Via: 1.1 varnish</div><div>< Connection: keep-alive</div></div><div><br></div><div>I assume this means that that dataset ID is not found?  If so, I would have expected a 404 perhaps.  There's no other info in the headers, so I'm not sure what other reason there is for no data returned (I realize a 204 should not return a body). I know this dataset ID used to return data, as I used it in examples for hitting the /dataset/*/metrics route  </div><div><br></div><div>In other APIs I get a 204 on a successful DELETE request - that's the only context I'm familiar with wrt 204's </div><div><br></div><div>Thanks! Scott</div></div></blockquote></div></div></div><div style="word-wrap:break-word"><div><div><blockquote type="cite">
_______________________________________________<br>API-users mailing list<br><a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a><br><a href="http://lists.gbif.org/mailman/listinfo/api-users" target="_blank">http://lists.gbif.org/mailman/listinfo/api-users</a><br></blockquote></div><br></div></div></blockquote></div>