Skip to content

Instantly share code, notes, and snippets.

@MatthewRDodds
Created October 26, 2016 10:10
Show Gist options
  • Save MatthewRDodds/c81acb25be11d91bba0ca8e8a84ccb5d to your computer and use it in GitHub Desktop.
Save MatthewRDodds/c81acb25be11d91bba0ca8e8a84ccb5d to your computer and use it in GitHub Desktop.
status codes
This is an interesting post about api messages and status codes, with examples from top apis: http://apigee.com/about/blog/technology/restful-api-design-what-about-errors
The TL;DR is that only about 8 status codes should be used as a maximum, and they should be used accurately to describe the error obviously.
These 8 statuses are:
200 - OK
404 - Not Found
500 - Internal Server Error
201 - Created
304 - Not Modified
400 - Bad Request
401 - Unauthorized
403 - Forbidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment