Skip to content

Commit 458a38c

Browse files
hczTrott
authored andcommitted
src: bring 425 status code name into accordance with RFC 8470
PR-URL: #29880 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8b9a578 commit 458a38c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/_http_server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const STATUS_CODES = {
112112
422: 'Unprocessable Entity', // RFC 4918
113113
423: 'Locked', // RFC 4918
114114
424: 'Failed Dependency', // RFC 4918
115-
425: 'Unordered Collection', // RFC 4918
115+
425: 'Too Early', // RFC 8470
116116
426: 'Upgrade Required', // RFC 2817
117117
428: 'Precondition Required', // RFC 6585
118118
429: 'Too Many Requests', // RFC 6585

src/node_http2.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ enum http_known_headers {
287287
V(UNPROCESSABLE_ENTITY, 422) \
288288
V(LOCKED, 423) \
289289
V(FAILED_DEPENDENCY, 424) \
290-
V(UNORDERED_COLLECTION, 425) \
290+
V(TOO_EARLY, 425) \
291291
V(UPGRADE_REQUIRED, 426) \
292292
V(PRECONDITION_REQUIRED, 428) \
293293
V(TOO_MANY_REQUESTS, 429) \

test/parallel/test-http2-binding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const expectedStatusCodes = {
7474
HTTP_STATUS_UNPROCESSABLE_ENTITY: 422,
7575
HTTP_STATUS_LOCKED: 423,
7676
HTTP_STATUS_FAILED_DEPENDENCY: 424,
77-
HTTP_STATUS_UNORDERED_COLLECTION: 425,
77+
HTTP_STATUS_TOO_EARLY: 425,
7878
HTTP_STATUS_UPGRADE_REQUIRED: 426,
7979
HTTP_STATUS_PRECONDITION_REQUIRED: 428,
8080
HTTP_STATUS_TOO_MANY_REQUESTS: 429,

0 commit comments

Comments
 (0)