4
4
5
5
abstract class Status {
6
6
7
- public const StatusContinue = 100 ; // RFC 7231, 6 .2.1
8
- public const SwitchingProtocols = 101 ; // RFC 7231, 6 .2.2
7
+ public const StatusContinue = 100 ; // RFC 9110, 15 .2.1
8
+ public const SwitchingProtocols = 101 ; // RFC 9110, 15 .2.2
9
9
public const Processing = 102 ; // RFC 2518, 10.1
10
+ public const EarlyHints = 103 ; // RFC 8297
10
11
11
- public const OK = 200 ; // RFC 7231, 6 .3.1
12
- public const Created = 201 ; // RFC 7231, 6 .3.2
13
- public const Accepted = 202 ; // RFC 7231, 6 .3.3
14
- public const NonAuthoritativeInfo = 203 ; // RFC 7231, 6 .3.4
15
- public const NoContent = 204 ; // RFC 7231, 6 .3.5
16
- public const ResetContent = 205 ; // RFC 7231, 6 .3.6
17
- public const PartialContent = 206 ; // RFC 7233, 4.1
12
+ public const OK = 200 ; // RFC 9110, 15 .3.1
13
+ public const Created = 201 ; // RFC 9110, 15 .3.2
14
+ public const Accepted = 202 ; // RFC 9110, 15 .3.3
15
+ public const NonAuthoritativeInfo = 203 ; // RFC 9110, 15 .3.4
16
+ public const NoContent = 204 ; // RFC 9110, 15 .3.5
17
+ public const ResetContent = 205 ; // RFC 9110, 15 .3.6
18
+ public const PartialContent = 206 ; // RFC 9110, 15.3.7
18
19
public const MultiStatus = 207 ; // RFC 4918, 11.1
19
20
public const AlreadyReported = 208 ; // RFC 5842, 7.1
20
21
public const IMUsed = 226 ; // RFC 3229, 10.4.1
21
22
22
- public const MultipleChoices = 300 ; // RFC 7231, 6 .4.1
23
- public const MovedPermanently = 301 ; // RFC 7231, 6 .4.2
24
- public const Found = 302 ; // RFC 7231, 6 .4.3
25
- public const SeeOther = 303 ; // RFC 7231, 6 .4.4
26
- public const NotModified = 304 ; // RFC 7232, 4.1
27
- public const UseProxy = 305 ; // RFC 7231, 6 .4.5
28
- // = 306; // RFC 7231, 6 .4.6 (Unused)
29
- public const TemporaryRedirect = 307 ; // RFC 7231, 6 .4.7
30
- public const PermanentRedirect = 308 ; // RFC 7538, 3
23
+ public const MultipleChoices = 300 ; // RFC 9110, 15 .4.1
24
+ public const MovedPermanently = 301 ; // RFC 9110, 15 .4.2
25
+ public const Found = 302 ; // RFC 9110, 15 .4.3
26
+ public const SeeOther = 303 ; // RFC 9110, 15 .4.4
27
+ public const NotModified = 304 ; // RFC 9110, 15.4.5
28
+ public const UseProxy = 305 ; // RFC 9110, 15 .4.6
29
+ // = 306; // RFC 9110, 15 .4.7 (Unused)
30
+ public const TemporaryRedirect = 307 ; // RFC 9110, 15 .4.8
31
+ public const PermanentRedirect = 308 ; // RFC 9110, 15.4.9
31
32
32
- public const BadRequest = 400 ; // RFC 7231, 6.5.1
33
- public const Unauthorized = 401 ; // RFC 7235, 3.1
34
- public const PaymentRequired = 402 ; // RFC 7231, 6.5.2
35
- public const Forbidden = 403 ; // RFC 7231, 6.5.3
36
- public const NotFound = 404 ; // RFC 7231, 6.5.4
37
- public const MethodNotAllowed = 405 ; // RFC 7231, 6.5.5
38
- public const NotAcceptable = 406 ; // RFC 7231, 6.5.6
39
- public const ProxyAuthRequired = 407 ; // RFC 7235, 3.2
40
- public const RequestTimeout = 408 ; // RFC 7231, 6.5.7
41
- public const Conflict = 409 ; // RFC 7231, 6.5.8
42
- public const Gone = 410 ; // RFC 7231, 6.5.9
43
- public const LengthRequired = 411 ; // RFC 7231, 6.5.10
44
- public const PreconditionFailed = 412 ; // RFC 7232, 4.2
45
- public const RequestEntityTooLarge = 413 ; // RFC 7231, 6.5.11
46
- public const RequestURITooLong = 414 ; // RFC 7231, 6.5.12
47
- public const UnsupportedMediaType = 415 ; // RFC 7231, 6.5.13
48
- public const RequestedRangeNotSatisfiable = 416 ; // RFC 7233, 4.4
49
- public const ExpectationFailed = 417 ; // RFC 7231, 6.5.14
50
- public const Teapot = 418 ; // RFC 7168, 2.3.3
51
- public const UnprocessableEntity = 422 ; // RFC 4918, 11.2
33
+ public const BadRequest = 400 ; // RFC 9110, 15.5.1
34
+ public const Unauthorized = 401 ; // RFC 9110, 15.5.2
35
+ public const PaymentRequired = 402 ; // RFC 9110, 15.5.3
36
+ public const Forbidden = 403 ; // RFC 9110, 15.5.4
37
+ public const NotFound = 404 ; // RFC 9110, 15.5.5
38
+ public const MethodNotAllowed = 405 ; // RFC 9110, 15.5.6
39
+ public const NotAcceptable = 406 ; // RFC 9110, 15.5.7
40
+ public const ProxyAuthRequired = 407 ; // RFC 9110, 15.5.8
41
+ public const RequestTimeout = 408 ; // RFC 9110, 15.5.9
42
+ public const Conflict = 409 ; // RFC 9110, 15.5.10
43
+ public const Gone = 410 ; // RFC 9110, 15.5.11
44
+ public const LengthRequired = 411 ; // RFC 9110, 15.5.12
45
+ public const PreconditionFailed = 412 ; // RFC 9110, 15.5.13
46
+ public const RequestEntityTooLarge = 413 ; // RFC 9110, 15.5.14
47
+ public const RequestURITooLong = 414 ; // RFC 9110, 15.5.15
48
+ public const UnsupportedMediaType = 415 ; // RFC 9110, 15.5.16
49
+ public const RequestedRangeNotSatisfiable = 416 ; // RFC 9110, 15.5.17
50
+ public const ExpectationFailed = 417 ; // RFC 9110, 15.5.18
51
+ public const Teapot = 418 ; // RFC 9110, 15.5.19 (Unused)
52
+ public const MisdirectedRequest = 421 ; // RFC 9110, 15.5.20
53
+ public const UnprocessableEntity = 422 ; // RFC 9110, 15.5.21
52
54
public const Locked = 423 ; // RFC 4918, 11.3
53
55
public const FailedDependency = 424 ; // RFC 4918, 11.4
54
- public const UpgradeRequired = 426 ; // RFC 7231, 6.5.15
56
+ public const TooEarly = 425 ; // RFC 8470, 5.2.
57
+ public const UpgradeRequired = 426 ; // RFC 9110, 15.5.22
55
58
public const PreconditionRequired = 428 ; // RFC 6585, 3
56
59
public const TooManyRequests = 429 ; // RFC 6585, 4
57
60
public const RequestHeaderFieldsTooLarge = 431 ; // RFC 6585, 5
58
61
public const UnavailableForLegalReasons = 451 ; // RFC 7725, 3
59
62
60
- public const InternalServerError = 500 ; // RFC 7231, 6 .6.1
61
- public const NotImplemented = 501 ; // RFC 7231, 6 .6.2
62
- public const BadGateway = 502 ; // RFC 7231, 6 .6.3
63
- public const ServiceUnavailable = 503 ; // RFC 7231, 6 .6.4
64
- public const GatewayTimeout = 504 ; // RFC 7231, 6 .6.5
65
- public const HTTPVersionNotSupported = 505 ; // RFC 7231, 6 .6.6
63
+ public const InternalServerError = 500 ; // RFC 9110, 15 .6.1
64
+ public const NotImplemented = 501 ; // RFC 9110, 15 .6.2
65
+ public const BadGateway = 502 ; // RFC 9110, 15 .6.3
66
+ public const ServiceUnavailable = 503 ; // RFC 9110, 15 .6.4
67
+ public const GatewayTimeout = 504 ; // RFC 9110, 15 .6.5
68
+ public const HTTPVersionNotSupported = 505 ; // RFC 9110, 15 .6.6
66
69
public const VariantAlsoNegotiates = 506 ; // RFC 2295, 8.1
67
70
public const InsufficientStorage = 507 ; // RFC 4918, 11.5
68
71
public const LoopDetected = 508 ; // RFC 5842, 7.2
@@ -73,6 +76,7 @@ abstract class Status {
73
76
self ::StatusContinue => 'Continue ' ,
74
77
self ::SwitchingProtocols => 'Switching Protocols ' ,
75
78
self ::Processing => 'Processing ' ,
79
+ self ::EarlyHints => 'Early Hints ' ,
76
80
77
81
self ::OK => 'OK ' ,
78
82
self ::Created => 'Created ' ,
@@ -113,9 +117,11 @@ abstract class Status {
113
117
self ::RequestedRangeNotSatisfiable => 'Requested Range Not Satisfiable ' ,
114
118
self ::ExpectationFailed => 'Expectation Failed ' ,
115
119
self ::Teapot => 'I \'m a teapot ' ,
120
+ self ::MisdirectedRequest => 'Misdirected Request ' ,
116
121
self ::UnprocessableEntity => 'Unprocessable Entity ' ,
117
122
self ::Locked => 'Locked ' ,
118
123
self ::FailedDependency => 'Failed Dependency ' ,
124
+ self ::TooEarly => 'Too Early ' ,
119
125
self ::UpgradeRequired => 'Upgrade Required ' ,
120
126
self ::PreconditionRequired => 'Precondition Required ' ,
121
127
self ::TooManyRequests => 'Too Many Requests ' ,
0 commit comments