Document new response codes
This commit is contained in:
@@ -96,6 +96,9 @@ string objects that must be created when preparing responses.
|
||||
HTTP_EXPECTATION_FAILED = HTTP_417
|
||||
HTTP_IM_A_TEAPOT = HTTP_418
|
||||
HTTP_UPGRADE_REQUIRED = HTTP_426
|
||||
HTTP_PRECONDITION_REQUIRED = HTTP_428
|
||||
HTTP_TOO_MANY_REQUESTS = HTTP_429
|
||||
HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = HTTP_431
|
||||
|
||||
HTTP_400 = '400 Bad Request'
|
||||
HTTP_401 = '401 Unauthorized' # <-- Really means "unauthenticated"
|
||||
@@ -117,6 +120,9 @@ string objects that must be created when preparing responses.
|
||||
HTTP_417 = '417 Expectation Failed'
|
||||
HTTP_418 = "418 I'm a teapot"
|
||||
HTTP_426 = '426 Upgrade Required'
|
||||
HTTP_428 = '428 Precondition Required'
|
||||
HTTP_429 = '429 Too Many Requests'
|
||||
HTTP_431 = '431 Request Header Fields Too Large'
|
||||
|
||||
5xx Server Error
|
||||
----------------
|
||||
@@ -129,6 +135,7 @@ string objects that must be created when preparing responses.
|
||||
HTTP_SERVICE_UNAVAILABLE = HTTP_503
|
||||
HTTP_GATEWAY_TIMEOUT = HTTP_504
|
||||
HTTP_HTTP_VERSION_NOT_SUPPORTED = HTTP_505
|
||||
HTTP_NETWORK_AUTHENTICATION_REQUIRED = HTTP_511
|
||||
|
||||
HTTP_500 = '500 Internal Server Error'
|
||||
HTTP_501 = '501 Not Implemented'
|
||||
@@ -136,3 +143,4 @@ string objects that must be created when preparing responses.
|
||||
HTTP_503 = '503 Service Unavailable'
|
||||
HTTP_504 = '504 Gateway Time-out'
|
||||
HTTP_505 = '505 HTTP Version not supported'
|
||||
HTTP_511 = '511 Network Authentication Required'
|
||||
|
||||
Reference in New Issue
Block a user