Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
feat: adding a handful of new status codes (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Mar 13, 2020
1 parent 4f29c2b commit 35db543
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions packages/http-status-codes/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const codes = {
204: ['No Content', true],
205: ['Reset Content', true],
206: ['Partial Content', true],
207: ['Multi-Status', true],
208: ['Already Reported', true],
226: ['IM Used', true],

'3XX': ['Redirection', true],
300: ['Multiple Choices', true],
Expand All @@ -24,7 +27,7 @@ const codes = {
303: ['See Other', true],
304: ['Not Modified', true],
305: ['Use Proxy', true],
306: ['Unused', true],
306: ['Switch Proxy', true],
307: ['Temporary Redirect', true],
308: ['Permanent Redirect', true],

Expand All @@ -42,15 +45,18 @@ const codes = {
410: ['Gone', false],
411: ['Length Required', false],
412: ['Precondition Failed', false],
413: ['Request Entry Too Large', false],
414: ['Request-URI Too Long', false],
413: ['Payload Too Large', false],
414: ['URI Too Long', false],
415: ['Unsupported Media Type', false],
416: ['Requested Range Not Satisfiable', false],
416: ['Range Not Satisfiable', false],
417: ['Expectation Failed', false],
418: ["I'm a teapot", false],
420: ['Enhance Your Calm', false],
421: ['Misdirected Request', false],
422: ['Unprocessable Entity', false],
423: ['Locked', false],
424: ['Failed Dependency', false],
425: ['Too Early', false],
426: ['Upgrade Required', false],
428: ['Precondition Required', false],
429: ['Too Many Requests', false],
Expand All @@ -64,6 +70,11 @@ const codes = {
503: ['Service Unavailable', false],
504: ['Gateway Timeout', false],
505: ['HTTP Version Not Supported', false],
506: ['Variant Also Negotiates', false],
507: ['Insufficient Storage', false],
508: ['Loop Detected', false],
509: ['Bandwidth Limit Exceeded', false],
510: ['Not Extended', false],
511: ['Network Authentication Required', false],
};

Expand Down

0 comments on commit 35db543

Please sign in to comment.