From c783451cea23fa780d638eed15b8defa887f1bab Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Wed, 3 Jul 2019 16:10:42 -0700 Subject: [PATCH] Adding support for 426 and 451 HTTP codes. --- packages/api-explorer/src/lib/statuscodes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/api-explorer/src/lib/statuscodes.js b/packages/api-explorer/src/lib/statuscodes.js index a89dd4009..e7a46eb41 100644 --- a/packages/api-explorer/src/lib/statuscodes.js +++ b/packages/api-explorer/src/lib/statuscodes.js @@ -41,9 +41,11 @@ module.exports = function statusCodes(code) { 420: [420, 'Enhance Your Calm', 'error'], 422: [422, 'Unprocessable Entity', 'error'], 423: [423, 'Locked', 'error'], + 426: [426, 'Upgrade Required', 'error'], 428: [428, 'Precondition Required', 'error'], 429: [429, 'Too Many Requests', 'error'], 431: [431, 'Request Header Fields Too Large', 'error'], + 451: [451, 'Unavailable For Legal Reasons', 'error'], 500: [500, 'Internal Server Error', 'error'], 501: [501, 'Not Implemented', 'error'], 502: [502, 'Bad Gateway', 'error'],