You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.
The use of HTTP status codes in the new REST api doen't seem very consistent. I encountered the following two weird status codes (on serviceregistry.test.surfconext.nl) :
When trying to add (POST) an entity with an entityid that already exists, the API returns 500. Something in the 400-range (409: Conflict, perhaps?) would be more appropiate.
When trying to PUT or POST a json without specifying an appropriate Content-type header, the API fails with a 500 error. Error 400 (Bad request) would be more appropriate.
The text was updated successfully, but these errors were encountered:
Ah, I seems to have overlooked something: the DELETE case actually returns a 302. My client was redirecting the DELETE to /connections.json, on which it is not supported (and returned the 405).
I don't understand what is causing the 302 though.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The use of HTTP status codes in the new REST api doen't seem very consistent. I encountered the following two weird status codes (on serviceregistry.test.surfconext.nl) :
The text was updated successfully, but these errors were encountered: