Last active
August 29, 2015 14:01
-
-
Save yllieth/3a4ee984aee1e881eecc to your computer and use it in GitHub Desktop.
List most used HTTP 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
var HTTP = { | |
// SUCCESS | |
OK : 200, | |
CREATED : 201, | |
ACCEPTED : 202, | |
NO_CONTENT : 204, | |
// REDIRECTION | |
MOVED_PERMANENTLY : 301, | |
MOVED_TEMPORARY : 302, | |
NOT_MODIFIED : 304, | |
// CLIENT ERROR | |
BAD_REQUEST : 400, | |
UNAUTHORIZED : 401, | |
PAYMENT_REQUIRED : 402, | |
FORBIDDEN : 403, | |
NOT_FOUND : 404, | |
METHOD_NOT_ALLOWED : 405, | |
NOT_ACCEPTABLE : 406, | |
PRECONDITION_FAILED : 412, | |
REQUEST_ENTITY_TOO_LARGE : 413, | |
REQUEST_URI_TOO_LONG : 414, | |
UNSUPPORTED_MEDIA_TYPE : 415, | |
REQUESTED_RANGE_UNSATISFIABLE : 416, | |
EXPECTATION_FAILED : 417, | |
UNPROCESSABLE_ENTITY : 422, | |
LOCKED : 423, | |
TOO_MANY_REQUESTS : 429, | |
// SERVER ERRORS | |
INTERNAL_SERVER_ERROR : 500, | |
NOT_IMPLEMENTED : 501, | |
BAD_GATEWAY : 502, | |
PROXY_ERROR : 502, | |
SERVICE_UNAVAILABLE : 503, | |
GATEWAY_TIMEOUT : 504 | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment