-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch from 404 to 200 response from REST API when there's no error #658
Conversation
Yes an empty object should be returned (apart from the |
We may also have to consider replacing the |
Actually some of those should be Also on the subject of HTTP error codes I noticed a few cases where JSON parsing is returning |
HTTP 415 should also fit well for this : |
not sure of what to do on this. DELETE still looks appropriated to remove ressources. What would fits better according to you? |
So I think for specifiic instances of things (eg For other cases where it is a fixed resource we should on the JSON parsing I think we go with |
Agree |
Maybe we can do the PUT changes as a separate PR (or rather expanding the scope of where PUT is used) |
yes , considering it will also be a braking change for current implementations. Those ones currently shouldn't break anything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, does this need a GUI change as well?
No main tree is ok. 👍 |
Fix browser console spawning HTTP 404 error when API answer was correct. Was preventing to catch real 404 errors.
@jeremypoulter , do you think we should also change the {msg: "no override"} and co by empty objects {} ?