Created
October 26, 2016 10:10
-
-
Save MatthewRDodds/c81acb25be11d91bba0ca8e8a84ccb5d to your computer and use it in GitHub Desktop.
status codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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