Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Http.​StatusCodes

Assembly: Microsoft.AspNetCore.Http.Abstractions

Inheritance: object → StatusCodes

A collection of constants for <see href="http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml">HTTP status codes</see> .

Remarks

Descriptions for status codes are available from <see cref="M:Microsoft.AspNetCore.WebUtilities.ReasonPhrases.GetReasonPhrase(Int32)" /> .

Fields and Constants

public const int
Status100Continue
HTTP status code 100.
public const int
Status101SwitchingProtocols
HTTP status code 101.
public const int
Status102Processing
HTTP status code 102.
public const int
Status200OK
HTTP status code 200.
public const int
Status201Created
HTTP status code 201.
public const int
Status202Accepted
HTTP status code 202.
public const int
Status203NonAuthoritative
HTTP status code 203.
public const int
Status204NoContent
HTTP status code 204.
public const int
Status205ResetContent
HTTP status code 205.
public const int
Status206PartialContent
HTTP status code 206.
public const int
Status207MultiStatus
HTTP status code 207.
public const int
Status208AlreadyReported
HTTP status code 208.
public const int
Status226IMUsed
HTTP status code 226.
public const int
Status300MultipleChoices
HTTP status code 300.
public const int
Status301MovedPermanently
HTTP status code 301.
public const int
Status302Found
HTTP status code 302.
public const int
Status303SeeOther
HTTP status code 303.
public const int
Status304NotModified
HTTP status code 304.
public const int
Status305UseProxy
HTTP status code 305.
public const int
Status306SwitchProxy
HTTP status code 306.
public const int
Status307TemporaryRedirect
HTTP status code 307.
public const int
Status308PermanentRedirect
HTTP status code 308.
public const int
Status400BadRequest
HTTP status code 400.
public const int
Status401Unauthorized
HTTP status code 401.
public const int
Status402PaymentRequired
HTTP status code 402.
public const int
Status403Forbidden
HTTP status code 403.
public const int
Status404NotFound
HTTP status code 404.
public const int
Status405MethodNotAllowed
HTTP status code 405.
public const int
Status406NotAcceptable
HTTP status code 406.
public const int
Status407ProxyAuthenticationRequired
HTTP status code 407.
public const int
Status408RequestTimeout
HTTP status code 408.
public const int
Status409Conflict
HTTP status code 409.
public const int
Status410Gone
HTTP status code 410.
public const int
Status411LengthRequired
HTTP status code 411.
public const int
Status412PreconditionFailed
HTTP status code 412.
public const int
Status413RequestEntityTooLarge
HTTP status code 413.
public const int
Status413PayloadTooLarge
HTTP status code 413.
public const int
Status414RequestUriTooLong
HTTP status code 414.
public const int
Status414UriTooLong
HTTP status code 414.
public const int
Status415UnsupportedMediaType
HTTP status code 415.
public const int
Status416RequestedRangeNotSatisfiable
HTTP status code 416.
public const int
Status416RangeNotSatisfiable
HTTP status code 416.
public const int
Status417ExpectationFailed
HTTP status code 417.
public const int
Status418ImATeapot
HTTP status code 418.
public const int
Status419AuthenticationTimeout
HTTP status code 419.
public const int
Status421MisdirectedRequest
HTTP status code 421.
public const int
Status422UnprocessableEntity
HTTP status code 422.
public const int
Status423Locked
HTTP status code 423.
public const int
Status424FailedDependency
HTTP status code 424.
public const int
Status426UpgradeRequired
HTTP status code 426.
public const int
Status428PreconditionRequired
HTTP status code 428.
public const int
Status429TooManyRequests
HTTP status code 429.
public const int
Status431RequestHeaderFieldsTooLarge
HTTP status code 431.
public const int
Status451UnavailableForLegalReasons
HTTP status code 451.
public const int
Status499ClientClosedRequest
HTTP status code 499. This is an unofficial status code originally defined by Nginx and is commonly used in logs when the client has disconnected.
public const int
Status500InternalServerError
HTTP status code 500.
public const int
Status501NotImplemented
HTTP status code 501.
public const int
Status502BadGateway
HTTP status code 502.
public const int
Status503ServiceUnavailable
HTTP status code 503.
public const int
Status504GatewayTimeout
HTTP status code 504.
public const int
Status505HttpVersionNotsupported
HTTP status code 505.
public const int
Status506VariantAlsoNegotiates
HTTP status code 506.
public const int
Status507InsufficientStorage
HTTP status code 507.
public const int
Status508LoopDetected
HTTP status code 508.
public const int
Status510NotExtended
HTTP status code 510.
public const int
Status511NetworkAuthenticationRequired
HTTP status code 511.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object