summaryrefslogtreecommitdiff
path: root/lib/_http_server.js
diff options
context:
space:
mode:
authorя котик пур-пур <mvasilkov@gmail.com>2018-04-25 15:49:04 +0300
committerAnatoli Papirovski <apapirovski@mac.com>2018-05-22 12:20:21 +0400
commit464852b1c6f1b248e2d35b49cb3540e51f8d0e6f (patch)
treef07ad3864e5c4e618b644ae65a3cbe25e5313b91 /lib/_http_server.js
parent4a940aadfabc35be404da64e9ab7014a8cc71728 (diff)
downloadandroid-node-v8-464852b1c6f1b248e2d35b49cb3540e51f8d0e6f.tar.gz
android-node-v8-464852b1c6f1b248e2d35b49cb3540e51f8d0e6f.tar.bz2
android-node-v8-464852b1c6f1b248e2d35b49cb3540e51f8d0e6f.zip
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 <apapirovski@mac.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me>t Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'lib/_http_server.js')
-rw-r--r--lib/_http_server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js
index 928b57b371..425ddef6f9 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