Skip to content

Instantly share code, notes, and snippets.

@ericdouglas
Last active June 5, 2017 16:43
Show Gist options
  • Save ericdouglas/b099aa9f07d715aaf3fd to your computer and use it in GitHub Desktop.
Save ericdouglas/b099aa9f07d715aaf3fd to your computer and use it in GitHub Desktop.
Common HTTP Status Code for REST APIs

HTTP Common Status Code

200 - OK
201 - Created  # Response to successful POST or PUT
302 - Found # Temporary redirect such as to /login
303 - See Other # Redirect back to page after successful login
304 - Not Modified
400 - Bad Request
401 - Unauthorized  # Not logged in
403 - Forbidden  # Accessing another user's resource
404 - Not Found
500 - Internal Server Error

Credits

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