Status codes as defined by RFC 7231 and RFC 6585.
Enumerator |
---|
continue_request | Indicates that the initial part of a request has been received and has not yet been rejected by the server.
The server intends to send a final response after the request has been fully received and acted upon.
|
switching_protocols | Indicates that the server understands and is willing to comply with the client's request for a change in the application protocol being used on this connection.
|
ok | Indicates that the request has succeeded.
|
created | Indicates that the request has been fulfilled and has resulted in one or more new resources being created.
|
accepted | Indicates that the request has been accepted for processing, but the processing has not been completed.
|
non_authoritative_information | Indicates that the request was successful but the enclosed payload has been modified from that of the origin server's 200 (OK) response by a transforming proxy.
|
no_content | Indicates that the server has successfully fulfilled the request and that there is no additional content to send in the response payload body.
|
reset_content | Indicates that the server has fulfilled the request and desires that the user agent reset the "document view".
|
partial_content | Indicates that the server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the request's Range header field.
|
multiple_choices | Indicates that the target resource has more than one representation and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation.
|
moved_permanently | Indicates that the target resource has been assigned a new permanent URI.
|
found | Indicates that the target resource resides temporarily under a different URI.
|
see_other | Indicates that the server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, which is intended to provide an indirect response to the original request.
|
not_modified | Indicates that a conditional GET or HEAD request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition evaluated to false.
|
use_proxy | Deprecated.
|
temporary_redirect | No longer valid.
|
bad_request | Indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
unauthorized | Indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
|
payment_required | Reserved for future use.
|
forbidden | Indicates that the server understood the request but refuses to authorize it.
|
not_found | Indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
|
method_not_allowed | Indicates that the method received in the request-line is known by the origin server but not supported by the target resource.
|
not_acceptable | Indicates that the target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request (Section 5.3), and the server is unwilling to supply a default representation.
|
proxy_authentication_required | Similar to 401 (Unauthorized), but it indicates that the client needs to authenticate itself in order to use a proxy.
|
request_timeout | Indicates that the server did not receive a complete request message within the time that it was prepared to wait.
|
conflict | Indicates that the request could not be completed due to a conflict with the current state of the target resource.
This code is used in situations where the user might be able to resolve the conflict and resubmit the request.
|
gone | Indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.
|
length_required | Indicates that the server refuses to accept the request without a defined Content-Length.
|
precondition_failed | Indicates that one or more conditions given in the request header fields evaluated to false when tested on the server.
|
payload_too_large | Indicates that the server is refusing to process a request because the request payload is larger than the server is willing or able to process.
|
uri_too_long | Indicates that the server is refusing to service the request because the request-target is longer than the server is willing to interpret.
|
unsupported_media_type | Indicates that the origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.
|
range_not_satisfiable | Indicates that none of the ranges in the request's Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges.
|
expectation_failed | Indicates that the expectation given in the request's Expect header field could not be met by at least one of the inbound servers.
|
upgrade_required | Indicates that the server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.
|
precondition_required | Indicates that the origin server requires the request to be conditional.
|
too_many_requests | Indicates that the user has sent too many requests in a given amount of time ("rate limiting").
|
request_header_fields_too_large | Indicates that the server is unwilling to process the request because its header fields are too large.
|
internal_server_error | Indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
|
not_implemented | Indicates that the server does not support the functionality required to fulfill the request.
|
bad_gateway | Indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.
|
service_unavailable | Indicates that the server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.
|
gateway_timeout | Indicates that the server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.
|
http_version_not_supported | Indicates that the server does not support, or refuses to support, the major version of HTTP that was used in the request message.
|
network_authentication_required | Indicates that the client needs to authenticate to gain network access.
|