hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
16 stars 4 forks source link

Refine HTTP status code responses #113

Closed acka47 closed 7 years ago

acka47 commented 9 years ago

Brought up by @jschnasse. Currently lobid always delivers a 303 followed by a 200, even if no actual resource with this URI exists.

Example:

$ curl -i -L http://lobid.org/resource/this-lobid-resource-does-not-exist
HTTP/1.1 303 See Other
Date: Mon, 09 Feb 2015 14:41:32 GMT
Location: /resource/this-lobid-resource-does-not-exist/about
Content-Length: 0
Content-Type: text/plain

HTTP/1.1 200 OK
Date: Mon, 09 Feb 2015 14:41:32 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 2
acka47 commented 7 years ago

Won't fix for API 1.0. The upcoming version doesn't have 303 redirects. Closing.