Skip to content

Instantly share code, notes, and snippets.

@odan
Last active September 1, 2021 20:06
Show Gist options
  • Star 48 You must be signed in to star a gist
  • Fork 18 You must be signed in to fork a gist
  • Save odan/1d2ef018adb3ea5a0d3abb35406d2c65 to your computer and use it in GitHub Desktop.
Save odan/1d2ef018adb3ea5a0d3abb35406d2c65 to your computer and use it in GitHub Desktop.
REST, RESTful API Quick Reference
@TheNilesh
Copy link

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