Instantly share code, notes, and snippets.

Embed
What would you like to do?
REST, RESTful API Quick Reference
@TheNilesh

This comment has been minimized.

TheNilesh commented May 25, 2018

409 Conflict If resource already exists.

409 can also be returned in case conflict in the state of the resource, that is through ETag or If-Not-Modified-Since header.

GET /users Index getUsers Used for retrieving a list of resources. 200 (OK), 404 (Not Found)

Instead of 404, an empty list should be returned when there are no resources. This will differentiate the cases resource URI is valid or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment