From 19a022f5281118675b6cca4a2f123fe01da55b53 Mon Sep 17 00:00:00 2001 From: Julian Cheal Date: Tue, 10 Oct 2017 23:10:17 +0100 Subject: [PATCH] Added two new HTTP Status Codes 421, and 451. 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',