Skip to content

Commit 545a9d8

Browse files
mvasilkovaduh95
authored andcommitted
http: fix capitalization of 418 status message
Update the message to be consistent with RFC 7168. Add a note to "Multiple Choices" regarding RFC 7231 superseding RFC 7168. PR-URL: #20700 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>t Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 3c05b03 commit 545a9d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_http_server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const STATUS_CODES = {
6767
207: 'Multi-Status', // RFC 4918
6868
208: 'Already Reported',
6969
226: 'IM Used',
70-
300: 'Multiple Choices',
70+
300: 'Multiple Choices', // RFC 7231
7171
301: 'Moved Permanently',
7272
302: 'Found',
7373
303: 'See Other',
@@ -93,7 +93,7 @@ const STATUS_CODES = {
9393
415: 'Unsupported Media Type',
9494
416: 'Range Not Satisfiable',
9595
417: 'Expectation Failed',
96-
418: 'I\'m a teapot', // RFC 2324
96+
418: 'I\'m a Teapot', // RFC 7168
9797
421: 'Misdirected Request',
9898
422: 'Unprocessable Entity', // RFC 4918
9999
423: 'Locked', // RFC 4918

0 commit comments

Comments
 (0)