From fe7e8d6a3ec2891e21d2cf1c5168195f1b53b21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=8F=20=D0=BA=D0=BE=D1=82=D0=B8=D0=BA=20=D0=BF=D1=83?= =?UTF-8?q?=D1=80-=D0=BF=D1=83=D1=80?= Date: Wed, 25 Apr 2018 15:49:04 +0300 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/20700 Reviewed-By: Anatoli Papirovski Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto t Co-authored-by: Antoine du Hamel --- lib/_http_server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_http_server.js b/lib/_http_server.js index 928b57b3719684..425ddef6f954f6 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -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', @@ -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