diff --git a/lib/_http_server.js b/lib/_http_server.js index 78da88ba1eed47..2de2112dfca2ed 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -50,6 +50,7 @@ const STATUS_CODES = { 100: 'Continue', 101: 'Switching Protocols', 102: 'Processing', // RFC 2518, obsoleted by RFC 4918 + 103: 'Early Hints', 200: 'OK', 201: 'Created', 202: 'Accepted', diff --git a/src/node_http2.h b/src/node_http2.h index 0f7146de03507c..f8bca65594a20a 100644 --- a/src/node_http2.h +++ b/src/node_http2.h @@ -292,6 +292,7 @@ HTTP_KNOWN_HEADER_MAX V(CONTINUE, 100) \ V(SWITCHING_PROTOCOLS, 101) \ V(PROCESSING, 102) \ + V(EARLY_HINTS, 103) \ V(OK, 200) \ V(CREATED, 201) \ V(ACCEPTED, 202) \ diff --git a/test/parallel/test-http2-binding.js b/test/parallel/test-http2-binding.js index 5b7a74a0324ef8..8935e569f500c6 100644 --- a/test/parallel/test-http2-binding.js +++ b/test/parallel/test-http2-binding.js @@ -31,6 +31,7 @@ const expectedStatusCodes = { HTTP_STATUS_CONTINUE: 100, HTTP_STATUS_SWITCHING_PROTOCOLS: 101, HTTP_STATUS_PROCESSING: 102, + HTTP_STATUS_EARLY_HINTS: 103, HTTP_STATUS_OK: 200, HTTP_STATUS_CREATED: 201, HTTP_STATUS_ACCEPTED: 202,