Skip to content

Commit

Permalink
http: fix capitalization of 418 status message
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
2 people authored and MylesBorins committed May 22, 2018
1 parent 3c05b03 commit 545a9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const STATUS_CODES = {
207: 'Multi-Status', // RFC 4918
208: 'Already Reported',
226: 'IM Used',
300: 'Multiple Choices',
300: 'Multiple Choices', // RFC 7231
301: 'Moved Permanently',
302: 'Found',
303: 'See Other',
Expand All @@ -93,7 +93,7 @@ const STATUS_CODES = {
415: 'Unsupported Media Type',
416: 'Range Not Satisfiable',
417: 'Expectation Failed',
418: 'I\'m a teapot', // RFC 2324
418: 'I\'m a Teapot', // RFC 7168
421: 'Misdirected Request',
422: 'Unprocessable Entity', // RFC 4918
423: 'Locked', // RFC 4918
Expand Down

0 comments on commit 545a9d8

Please sign in to comment.