From dd93768471702bd5e3ac61399e9b45c7883bfcf8 Mon Sep 17 00:00:00 2001 From: Ben Drucker Date: Tue, 17 Nov 2015 14:23:49 -0800 Subject: [PATCH] Use status codes from Node v5 Closes #1 --- browser.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/browser.js b/browser.js index 59c8f00..f589816 100644 --- a/browser.js +++ b/browser.js @@ -10,9 +10,11 @@ module.exports = { "205": "Reset Content", "206": "Partial Content", "207": "Multi-Status", + "208": "Already Reported", + "226": "IM Used", "300": "Multiple Choices", "301": "Moved Permanently", - "302": "Moved Temporarily", + "302": "Found", "303": "See Other", "304": "Not Modified", "305": "Use Proxy", @@ -26,17 +28,18 @@ module.exports = { "405": "Method Not Allowed", "406": "Not Acceptable", "407": "Proxy Authentication Required", - "408": "Request Time-out", + "408": "Request Timeout", "409": "Conflict", "410": "Gone", "411": "Length Required", "412": "Precondition Failed", - "413": "Request Entity Too Large", - "414": "Request-URI Too Large", + "413": "Payload Too Large", + "414": "URI Too Long", "415": "Unsupported Media Type", - "416": "Requested Range Not Satisfiable", + "416": "Range Not Satisfiable", "417": "Expectation Failed", "418": "I'm a teapot", + "421": "Misdirected Request", "422": "Unprocessable Entity", "423": "Locked", "424": "Failed Dependency", @@ -49,10 +52,11 @@ module.exports = { "501": "Not Implemented", "502": "Bad Gateway", "503": "Service Unavailable", - "504": "Gateway Time-out", + "504": "Gateway Timeout", "505": "HTTP Version Not Supported", "506": "Variant Also Negotiates", "507": "Insufficient Storage", + "508": "Loop Detected", "509": "Bandwidth Limit Exceeded", "510": "Not Extended", "511": "Network Authentication Required"