From 51a00ea638d1a7bb5cb1ad4fbc9f673b8ce9e2e6 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 30 Dec 2015 11:45:52 +0000 Subject: * lib/webrick/httpstatus.rb: Added HTTP 451 Status Code. [fix GH-1167] Patch by @MuhammetDilmac https://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httpstatus.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb index 8664da26d0..ded5aa2e60 100644 --- a/lib/webrick/httpstatus.rb +++ b/lib/webrick/httpstatus.rb @@ -99,6 +99,7 @@ module WEBrick 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', -- cgit v1.2.3