summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Cavage <mark.cavage@joyent.com>2011-12-18 16:13:51 -0800
committerisaacs <i@izs.me>2012-05-04 21:51:24 -0700
commit5871c81181bc339e2265e56e1ba58bf3be73708d (patch)
treef94ea688f3f1e5c9c6ea25d9cbc4d2f5f64b5639 /lib
parentceb51ddaa187b188035dd0b01589f1d24d5e90c7 (diff)
downloadandroid-node-v8-5871c81181bc339e2265e56e1ba58bf3be73708d.tar.gz
android-node-v8-5871c81181bc339e2265e56e1ba58bf3be73708d.tar.bz2
android-node-v8-5871c81181bc339e2265e56e1ba58bf3be73708d.zip
Add HTTP Status codes from RFC 6585
See: http://tools.ietf.org/html/rfc6585
Diffstat (limited to 'lib')
-rw-r--r--lib/http.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/http.js b/lib/http.js
index b8d3341627..2019514645 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -221,6 +221,9 @@ var STATUS_CODES = exports.STATUS_CODES = {
424 : 'Failed Dependency', // RFC 4918
425 : 'Unordered Collection', // RFC 4918
426 : 'Upgrade Required', // RFC 2817
+ 428 : 'Precondition Required', // RFC 6585
+ 429 : 'Too Many Requests', // RFC 6585
+ 431 : 'Request Header Fields Too Large',// RFC 6585
500 : 'Internal Server Error',
501 : 'Not Implemented',
502 : 'Bad Gateway',
@@ -230,7 +233,8 @@ var STATUS_CODES = exports.STATUS_CODES = {
506 : 'Variant Also Negotiates', // RFC 2295
507 : 'Insufficient Storage', // RFC 4918
509 : 'Bandwidth Limit Exceeded',
- 510 : 'Not Extended' // RFC 2774
+ 510 : 'Not Extended', // RFC 2774
+ 511 : 'Network Authentication Required' // RFC 6585
};