diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-30 11:45:52 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-30 11:45:52 +0000 |
commit | 27f00a7a220d7b3bb9e6e22eb9bfae24f2e9351c (patch) | |
tree | 2dbb024b4c29d4eacd640e4fb36807ef319d4c46 /lib | |
parent | 8f8f92b508e48fe16c584cea9a8b819d72118342 (diff) | |
download | ruby-27f00a7a220d7b3bb9e6e22eb9bfae24f2e9351c.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/httpstatus.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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', |