Below is a list of various actions and the HTTP Response Status Codes you are likely to see:
Action | HTTP Code |
---|---|
Valid request, processed synchronously | 200 OK |
Valid request where no content is expected | 204 No Content |
Resource no longer exists at that location | 301 Moved Permanently |
Request with missing required fields | 400 Bad request |
Request with invalid values | 400 Bad request |
Request without Auth header | 401 Unauthorized |
Request with incorrect Auth content/key | 401 Unauthorized |
Resource does not exist | 404 Not Found |
Invalid method sent to resource (e.g. PUT where only GET is permitted) | 405 Method Not Allowed |
Service is down | 503 Service unavailable |
Internal server error | 503 Service unavailable |