Add all status codes in IANA list and update reason phrases
This commit is contained in:
parent
7d20ae2156
commit
33dd1d965f
|
|
@ -8,6 +8,7 @@ namespace Microsoft.AspNetCore.Http
|
|||
{
|
||||
public const int Status100Continue = 100;
|
||||
public const int Status101SwitchingProtocols = 101;
|
||||
public const int Status102Processing = 102;
|
||||
|
||||
public const int Status200OK = 200;
|
||||
public const int Status201Created = 201;
|
||||
|
|
@ -17,6 +18,8 @@ namespace Microsoft.AspNetCore.Http
|
|||
public const int Status205ResetContent = 205;
|
||||
public const int Status206PartialContent = 206;
|
||||
public const int Status207MultiStatus = 207;
|
||||
public const int Status208AlreadyReported = 208;
|
||||
public const int Status226IMUsed = 226;
|
||||
|
||||
public const int Status300MultipleChoices = 300;
|
||||
public const int Status301MovedPermanently = 301;
|
||||
|
|
@ -24,7 +27,7 @@ namespace Microsoft.AspNetCore.Http
|
|||
public const int Status303SeeOther = 303;
|
||||
public const int Status304NotModified = 304;
|
||||
public const int Status305UseProxy = 305;
|
||||
public const int Status306SwitchProxy = 306;
|
||||
public const int Status306SwitchProxy = 306; // RFC 2616, removed
|
||||
public const int Status307TemporaryRedirect = 307;
|
||||
public const int Status308PermanentRedirect = 308;
|
||||
|
||||
|
|
@ -41,13 +44,16 @@ namespace Microsoft.AspNetCore.Http
|
|||
public const int Status410Gone = 410;
|
||||
public const int Status411LengthRequired = 411;
|
||||
public const int Status412PreconditionFailed = 412;
|
||||
public const int Status413RequestEntityTooLarge = 413;
|
||||
public const int Status414RequestUriTooLong = 414;
|
||||
public const int Status413RequestEntityTooLarge = 413; // RFC 2616, renamed
|
||||
public const int Status413PayloadTooLarge = 413; // RFC 7231
|
||||
public const int Status414RequestUriTooLong = 414; // RFC 2616, renamed
|
||||
public const int Status414UriTooLong = 414; // RFC 7231
|
||||
public const int Status415UnsupportedMediaType = 415;
|
||||
public const int Status416RequestedRangeNotSatisfiable = 416;
|
||||
public const int Status416RequestedRangeNotSatisfiable = 416; // RFC 2616, renamed
|
||||
public const int Status416RangeNotSatisfiable = 416; // RFC 7233
|
||||
public const int Status417ExpectationFailed = 417;
|
||||
public const int Status418ImATeapot = 418;
|
||||
public const int Status419AuthenticationTimeout = 419;
|
||||
public const int Status419AuthenticationTimeout = 419; // Not defined in any RFC
|
||||
public const int Status421MisdirectedRequest = 421;
|
||||
public const int Status422UnprocessableEntity = 422;
|
||||
public const int Status423Locked = 423;
|
||||
|
|
@ -66,6 +72,7 @@ namespace Microsoft.AspNetCore.Http
|
|||
public const int Status505HttpVersionNotsupported = 505;
|
||||
public const int Status506VariantAlsoNegotiates = 506;
|
||||
public const int Status507InsufficientStorage = 507;
|
||||
public const int Status508LoopDetected = 508;
|
||||
public const int Status510NotExtended = 510;
|
||||
public const int Status511NetworkAuthenticationRequired = 511;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace Microsoft.AspNetCore.WebUtilities
|
|||
{
|
||||
{ 100, "Continue" },
|
||||
{ 101, "Switching Protocols" },
|
||||
{ 102, "Processing" },
|
||||
|
||||
{ 200, "OK" },
|
||||
{ 201, "Created" },
|
||||
|
|
@ -21,6 +22,8 @@ namespace Microsoft.AspNetCore.WebUtilities
|
|||
{ 205, "Reset Content" },
|
||||
{ 206, "Partial Content" },
|
||||
{ 207, "Multi-Status" },
|
||||
{ 208, "Already Reported" },
|
||||
{ 226, "IM Used" },
|
||||
|
||||
{ 300, "Multiple Choices" },
|
||||
{ 301, "Moved Permanently" },
|
||||
|
|
@ -45,10 +48,10 @@ namespace Microsoft.AspNetCore.WebUtilities
|
|||
{ 410, "Gone" },
|
||||
{ 411, "Length Required" },
|
||||
{ 412, "Precondition Failed" },
|
||||
{ 413, "Request Entity Too Large" },
|
||||
{ 414, "Request-URI Too Long" },
|
||||
{ 413, "Payload Too Large" },
|
||||
{ 414, "URI Too Long" },
|
||||
{ 415, "Unsupported Media Type" },
|
||||
{ 416, "Requested Range Not Satisfiable" },
|
||||
{ 416, "Range Not Satisfiable" },
|
||||
{ 417, "Expectation Failed" },
|
||||
{ 418, "I'm a teapot" },
|
||||
{ 419, "Authentication Timeout" },
|
||||
|
|
@ -70,6 +73,7 @@ namespace Microsoft.AspNetCore.WebUtilities
|
|||
{ 505, "HTTP Version Not Supported" },
|
||||
{ 506, "Variant Also Negotiates" },
|
||||
{ 507, "Insufficient Storage" },
|
||||
{ 507, "Loop Detected" },
|
||||
{ 510, "Not Extended" },
|
||||
{ 511, "Network Authentication Required" },
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue