diff --git a/lib/_http_server.js b/lib/_http_server.js index bfbab222264652..04161ac024b3dc 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -44,6 +44,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 1006dff3ced70b..8b4aae8f2c670e 100644 --- a/src/node_http2.h +++ b/src/node_http2.h @@ -158,6 +158,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,