Enumeration HttpStatusCode

Contains the values of status codes defined for HTTP.

1.0.5

2022-04-23

Enumeration Members

Accepted

Equivalent to HTTP status 202.

Indicates that the request has been accepted for further processing.

AlreadyReported

Equivalent to HTTP status 208.

Indicates that the members of a WebDAV binding have already been enumerated in a preceding part of the multistatus response, and are not being included again.

Ambiguous

Equivalent to HTTP status 300.

Indicates that the requested information has multiple representations. The default action is to treat this status as a redirect and follow the contents of the Location header associated with this response. Ambiguous is a synonym for MultipleChoices.

BadGateway

Equivalent to HTTP status 502.

Indicates that an intermediate proxy server received a bad response from another proxy or the origin server.

BadRequest

Equivalent to HTTP status 400.

Indicates that the request could not be understood by the server. System.Net.HttpStatusCode.BadRequest is sent when no other error is applicable, or if the exact error is unknown or does not have its own error code.

Conflict

Equivalent to HTTP status 409.

Indicates that the request could not be carried out because of a conflict on the server.

Continue

Equivalent to HTTP status 100.

Indicates that the client can continue with its request.

Created

Equivalent to HTTP status 201.

Indicates that the request resulted in a new resource created before the response was sent.

EarlyHints

Equivalent to HTTP status 103.

Indicates to the client that the server is likely to send a final response with the header fields included in the informational response.

ExpectationFailed

Equivalent to HTTP status 417.

Indicates that an expectation given in an Expect header could not be met by the server.

FailedDependency

Equivalent to HTTP status 424.

Indicates that the method couldn't be performed on the resource because the requested action depended on another action and that action failed.

Forbidden

Equivalent to HTTP status 403.

Indicates that the server refuses to fulfill the request.

Found

Equivalent to HTTP status 302.

Indicates that the requested information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will use the GET method. Found is a synonym for Redirect.

GatewayTimeout

Equivalent to HTTP status 504.

Indicates that an intermediate proxy server timed out while waiting for a response from another proxy or the origin server.

Gone

Equivalent to HTTP status 410.

Indicates that the requested resource is no longer available.

HttpVersionNotSupported

Equivalent to HTTP status 505.

Indicates that the requested HTTP version is not supported by the server.

ImATeapot

RFC 2324, RFC 7168

IMUsed

Equivalent to HTTP status 226.

Indicates that the server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.

InsufficientStorage

Equivalent to HTTP status 507.

Indicates that the server is unable to store the representation needed to complete the request.

InternalServerError

Equivalent to HTTP status 500.

Indicates that a generic error has occurred on the server.

LengthRequired

Equivalent to HTTP status 411.

Indicates that the required Content-length header is missing.

Locked

Equivalent to HTTP status 423.

Indicates that the source or destination resource is locked.

LoopDetected

Equivalent to HTTP status 508.

Indicates that the server terminated an operation because it encountered an infinite loop while processing a WebDAV request with "Depth: infinity". This status code is meant for backward compatibility with clients not aware of the 208 status code System.Net.HttpStatusCode.AlreadyReported appearing in multistatus response bodies.

MethodNotAllowed

Equivalent to HTTP status 405.

Indicates that the request method (POST or GET) is not allowed on the requested resource.

MisdirectedRequest

Equivalent to HTTP status 421.

Indicates that the request was directed at a server that is not able to produce a response.

Moved

Equivalent to HTTP status 301.

Indicates that the requested information has been moved to the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will use the GET method. Moved is a synonym for MovedPermanently.

MovedPermanently

Equivalent to HTTP status 301.

Indicates that the requested information has been moved to the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. MovedPermanently is a synonym for Moved.

MultipleChoices

Equivalent to HTTP status 300.

Indicates that the requested information has multiple representations. The default action is to treat this status as a redirect and follow the contents of the Location header associated with this response. MultipleChoices is a synonym for Ambiguous.

MultiStatus

Equivalent to HTTP status 207.

Indicates multiple status codes for a single response during a Web Distributed Authoring and Versioning (WebDAV) operation. The response body contains XML that describes the status codes.

NetworkAuthenticationRequired

Equivalent to HTTP status 511.

Indicates that the client needs to authenticate to gain network access; it's intended for use by intercepting proxies used to control access to the network.

NoContent

Equivalent to HTTP status 204.

Indicates that the request has been successfully processed and that the response is intentionally blank.

NonAuthoritativeInformation

Equivalent to HTTP status 203.

Indicates that the returned meta information is from a cached copy instead of the origin server and therefore may be incorrect.

NotAcceptable

Equivalent to HTTP status 406.

Indicates that the client has indicated with Accept headers that it will not accept any of the available representations of the resource.

NotExtended

Equivalent to HTTP status 510.

Indicates that further extensions to the request are required for the server to fulfill it.

NotFound

Equivalent to HTTP status 404.

Indicates that the requested resource does not exist on the server.

NotImplemented

Equivalent to HTTP status 501.

Indicates that the server does not support the requested function.

NotModified

Equivalent to HTTP status 304.

Indicates that the client's cached copy is up to date. The contents of the resource are not transferred.

OK

Equivalent to HTTP status 200.

Indicates that the request succeeded and that the requested information is in the response. This is the most common status code to receive.

PartialContent

Equivalent to HTTP status 206.

Indicates that the response is a partial response as requested by a GET request that includes a byte range.

PaymentRequired

Equivalent to HTTP status 402.

IEquivalent to HTTP status 402. System.Net.HttpStatusCode.PaymentRequired is reserved for future use.

PermanentRedirect

Equivalent to HTTP status 308.

Indicates that the request information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will also use the POST method.

PreconditionFailed

Equivalent to HTTP status 412.

Indicates that a condition set for this request failed, and the request cannot be carried out. Conditions are set with conditional request headers like If-Match, If-None-Match, or If-Unmodified-Since.

PreconditionRequired

Equivalent to HTTP status 428.

Indicates that the server requires the request to be conditional.

Processing

Equivalent to HTTP status 102.

Indicates that the server has accepted the complete request but hasn't completed it yet.

ProxyAuthenticationRequired

Equivalent to HTTP status 407.

Indicates that the requested proxy requires authentication. The Proxy-authenticate header contains the details of how to perform the authentication.

Redirect

Equivalent to HTTP status 302.

Indicates that the requested information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will use the GET method. Redirect is a synonym for Found.

RedirectKeepVerb

Equivalent to HTTP status 307.

Indicates that the request information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will also use the POST method. RedirectKeepVerb is a synonym for TemporaryRedirect.

RedirectMethod

Equivalent to HTTP status 303.

IEquivalent to HTTP status 303. System.Net.HttpStatusCode.RedirectMethod automatically redirects the client to the URI specified in the Location header as the result of a POST. The request to the resource specified by the Location header will be made with a GET. RedirectMethod is a synonym for SeeOther.

RequestedRangeNotSatisfiable

Equivalent to HTTP status 416.

Indicates that the range of data requested from the resource cannot be returned, either because the beginning of the range is before the beginning of the resource, or the end of the range is after the end of the resource.

RequestEntityTooLarge

Equivalent to HTTP status 413.

Indicates that the request is too large for the server to process.

RequestHeaderFieldsTooLarge

Equivalent to HTTP status 431.

Indicates that the server is unwilling to process the request because its header fields (either an individual header field or all the header fields collectively) are too large.

RequestTimeout

Equivalent to HTTP status 408.

Indicates that the client did not send a request within the time the server was expecting the request.

RequestUriTooLong

Equivalent to HTTP status 414.

Indicates that the URI is too long.

ResetContent

Equivalent to HTTP status 205.

Indicates that the client should reset (not reload) the current resource.

SeeOther

Equivalent to HTTP status 303.

IEquivalent to HTTP status 303. System.Net.HttpStatusCode.SeeOther automatically redirects the client to the URI specified in the Location header as the result of a POST. The request to the resource specified by the Location header will be made with a GET. SeeOther is a synonym for RedirectMethod.

ServiceUnavailable

Equivalent to HTTP status 503.

Indicates that the server is temporarily unavailable, usually due to high load or maintenance.

SwitchingProtocols

Equivalent to HTTP status 101.

Indicates that the protocol version or protocol is being changed.

TemporaryRedirect

Equivalent to HTTP status 307.

Indicates that the request information is located at the URI specified in the Location header. The default action when this status is received is to follow the Location header associated with the response. When the original request method was POST, the redirected request will also use the POST method. TemporaryRedirect is a synonym for RedirectKeepVerb.

TooManyRequests

Equivalent to HTTP status 429.

Indicates that the user has sent too many requests in a given amount of time.

Unauthorized

Equivalent to HTTP status 401.

Indicates that the requested resource requires authentication. The WWW-Authenticate header contains the details of how to perform the authentication.

UnavailableForLegalReasons

Equivalent to HTTP status 451.

Indicates that the server is denying access to the resource as a consequence of a legal demand.

UnprocessableEntity

Equivalent to HTTP status 422.

Indicates that the request was well-formed but was unable to be followed due to semantic errors.

UnsupportedMediaType

Equivalent to HTTP status 415.

Indicates that the request is an unsupported type.

Unused

Equivalent to HTTP status 306.

IEquivalent to HTTP status 306. System.Net.HttpStatusCode.Unused is a proposed extension to the HTTP/1.1 specification that is not fully specified.

UpgradeRequired

Equivalent to HTTP status 426.

Indicates that the client should switch to a different protocol such as TLS/1.0.

UseProxy

Equivalent to HTTP status 305.

Indicates that the request should use the proxy server at the URI specified in the Location header.

VariantAlsoNegotiates

Equivalent to HTTP status 506.

Indicates that the chosen variant resource is configured to engage in transparent content negotiation itself and, therefore, isn't a proper endpoint in the negotiation process.