From 5fa3b45b7fe4c651c4cdc7bb0fd50ad927b00de3 Mon Sep 17 00:00:00 2001 From: Julian Cheal Date: Wed, 11 Oct 2017 15:10:24 +0100 Subject: [PATCH] Added two new HTTP Status Codes 421, and 451. (#1435) Ran the generator to update the list of HTTP Codes. --- lib/puma/const.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puma/const.rb b/lib/puma/const.rb index e25f8cab6a..1e6eb21ea9 100644 --- a/lib/puma/const.rb +++ b/lib/puma/const.rb @@ -54,6 +54,7 @@ class UnsupportedOption < RuntimeError 416 => 'Range Not Satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m A Teapot', + 421 => 'Misdirected Request', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', @@ -61,6 +62,7 @@ class UnsupportedOption < RuntimeError 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', + 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway',