@@ -78,69 +78,69 @@ const kServerResponse = Symbol('ServerResponse');
78
78
const kServerResponseStatistics = Symbol ( 'ServerResponseStatistics' ) ;
79
79
80
80
const STATUS_CODES = {
81
- 100 : 'Continue' ,
82
- 101 : 'Switching Protocols' ,
83
- 102 : 'Processing' , // RFC 2518, obsoleted by RFC 4918
84
- 103 : 'Early Hints' ,
85
- 200 : 'OK' ,
86
- 201 : 'Created' ,
87
- 202 : 'Accepted' ,
88
- 203 : 'Non-Authoritative Information' ,
89
- 204 : 'No Content' ,
90
- 205 : 'Reset Content' ,
91
- 206 : 'Partial Content' ,
92
- 207 : 'Multi-Status' , // RFC 4918
93
- 208 : 'Already Reported' ,
94
- 226 : 'IM Used' ,
95
- 300 : 'Multiple Choices' , // RFC 7231
96
- 301 : 'Moved Permanently' ,
97
- 302 : 'Found' ,
98
- 303 : 'See Other' ,
99
- 304 : 'Not Modified' ,
100
- 305 : 'Use Proxy' ,
101
- 307 : 'Temporary Redirect' ,
102
- 308 : 'Permanent Redirect' , // RFC 7238
103
- 400 : 'Bad Request' ,
104
- 401 : 'Unauthorized' ,
105
- 402 : 'Payment Required' ,
106
- 403 : 'Forbidden' ,
107
- 404 : 'Not Found' ,
108
- 405 : 'Method Not Allowed' ,
109
- 406 : 'Not Acceptable' ,
110
- 407 : 'Proxy Authentication Required' ,
111
- 408 : 'Request Timeout' ,
112
- 409 : 'Conflict' ,
113
- 410 : 'Gone' ,
114
- 411 : 'Length Required' ,
115
- 412 : 'Precondition Failed' ,
116
- 413 : 'Payload Too Large' ,
117
- 414 : 'URI Too Long' ,
118
- 415 : 'Unsupported Media Type' ,
119
- 416 : 'Range Not Satisfiable' ,
120
- 417 : 'Expectation Failed' ,
121
- 418 : 'I\'m a Teapot' , // RFC 7168
122
- 421 : 'Misdirected Request' ,
123
- 422 : 'Unprocessable Entity' , // RFC 4918
124
- 423 : 'Locked' , // RFC 4918
125
- 424 : 'Failed Dependency' , // RFC 4918
126
- 425 : 'Too Early' , // RFC 8470
127
- 426 : 'Upgrade Required' , // RFC 2817
128
- 428 : 'Precondition Required' , // RFC 6585
129
- 429 : 'Too Many Requests' , // RFC 6585
130
- 431 : 'Request Header Fields Too Large' , // RFC 6585
131
- 451 : 'Unavailable For Legal Reasons' ,
132
- 500 : 'Internal Server Error' ,
133
- 501 : 'Not Implemented' ,
134
- 502 : 'Bad Gateway' ,
135
- 503 : 'Service Unavailable' ,
136
- 504 : 'Gateway Timeout' ,
137
- 505 : 'HTTP Version Not Supported' ,
138
- 506 : 'Variant Also Negotiates' , // RFC 2295
139
- 507 : 'Insufficient Storage' , // RFC 4918
140
- 508 : 'Loop Detected' ,
81
+ 100 : 'Continue' , // RFC 7231 6.2.1
82
+ 101 : 'Switching Protocols' , // RFC 7231 6.2.2
83
+ 102 : 'Processing' , // RFC 2518 10.1 ( obsoleted by RFC 4918)
84
+ 103 : 'Early Hints' , // RFC 8297 2
85
+ 200 : 'OK' , // RFC 7231 6.3.1
86
+ 201 : 'Created' , // RFC 7231 6.3.2
87
+ 202 : 'Accepted' , // RFC 7231 6.3.3
88
+ 203 : 'Non-Authoritative Information' , // RFC 7231 6.3.4
89
+ 204 : 'No Content' , // RFC 7231 6.3.5
90
+ 205 : 'Reset Content' , // RFC 7231 6.3.6
91
+ 206 : 'Partial Content' , // RFC 7233 4.1
92
+ 207 : 'Multi-Status' , // RFC 4918 11.1
93
+ 208 : 'Already Reported' , // RFC 5842 7.1
94
+ 226 : 'IM Used' , // RFC 3229 10.4.1
95
+ 300 : 'Multiple Choices' , // RFC 7231 6.4.1
96
+ 301 : 'Moved Permanently' , // RFC 7231 6.4.2
97
+ 302 : 'Found' , // RFC 7231 6.4.3
98
+ 303 : 'See Other' , // RFC 7231 6.4.4
99
+ 304 : 'Not Modified' , // RFC 7232 4.1
100
+ 305 : 'Use Proxy' , // RFC 7231 6.4.5
101
+ 307 : 'Temporary Redirect' , // RFC 7231 6.4.7
102
+ 308 : 'Permanent Redirect' , // RFC 7238 3
103
+ 400 : 'Bad Request' , // RFC 7231 6.5.1
104
+ 401 : 'Unauthorized' , // RFC 7235 3.1
105
+ 402 : 'Payment Required' , // RFC 7231 6.5.2
106
+ 403 : 'Forbidden' , // RFC 7231 6.5.3
107
+ 404 : 'Not Found' , // RFC 7231 6.5.4
108
+ 405 : 'Method Not Allowed' , // RFC 7231 6.5.5
109
+ 406 : 'Not Acceptable' , // RFC 7231 6.5.6
110
+ 407 : 'Proxy Authentication Required' , // RFC 7235 3.2
111
+ 408 : 'Request Timeout' , // RFC 7231 6.5.7
112
+ 409 : 'Conflict' , // RFC 7231 6.5.8
113
+ 410 : 'Gone' , // RFC 7231 6.5.9
114
+ 411 : 'Length Required' , // RFC 7231 6.5.10
115
+ 412 : 'Precondition Failed' , // RFC 7232 4.2
116
+ 413 : 'Payload Too Large' , // RFC 7231 6.5.11
117
+ 414 : 'URI Too Long' , // RFC 7231 6.5.12
118
+ 415 : 'Unsupported Media Type' , // RFC 7231 6.5.13
119
+ 416 : 'Range Not Satisfiable' , // RFC 7233 4.4
120
+ 417 : 'Expectation Failed' , // RFC 7231 6.5.14
121
+ 418 : 'I\'m a Teapot' , // RFC 7168 2.3.3
122
+ 421 : 'Misdirected Request' , // RFC 7540 9.1.2
123
+ 422 : 'Unprocessable Entity' , // RFC 4918 11.2
124
+ 423 : 'Locked' , // RFC 4918 11.3
125
+ 424 : 'Failed Dependency' , // RFC 4918 11.4
126
+ 425 : 'Too Early' , // RFC 8470 5.2
127
+ 426 : 'Upgrade Required' , // RFC 2817 and RFC 7231 6.5.15
128
+ 428 : 'Precondition Required' , // RFC 6585 3
129
+ 429 : 'Too Many Requests' , // RFC 6585 4
130
+ 431 : 'Request Header Fields Too Large' , // RFC 6585 5
131
+ 451 : 'Unavailable For Legal Reasons' , // RFC 7725 3
132
+ 500 : 'Internal Server Error' , // RFC 7231 6.6.1
133
+ 501 : 'Not Implemented' , // RFC 7231 6.6.2
134
+ 502 : 'Bad Gateway' , // RFC 7231 6.6.3
135
+ 503 : 'Service Unavailable' , // RFC 7231 6.6.4
136
+ 504 : 'Gateway Timeout' , // RFC 7231 6.6.5
137
+ 505 : 'HTTP Version Not Supported' , // RFC 7231 6.6.6
138
+ 506 : 'Variant Also Negotiates' , // RFC 2295 8.1
139
+ 507 : 'Insufficient Storage' , // RFC 4918 11.5
140
+ 508 : 'Loop Detected' , // RFC 5842 7.2
141
141
509 : 'Bandwidth Limit Exceeded' ,
142
- 510 : 'Not Extended' , // RFC 2774
143
- 511 : 'Network Authentication Required' // RFC 6585
142
+ 510 : 'Not Extended' , // RFC 2774 7
143
+ 511 : 'Network Authentication Required' // RFC 6585 6
144
144
} ;
145
145
146
146
const kOnExecute = HTTPParser . kOnExecute | 0 ;
0 commit comments