diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 22:40:14 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 22:40:14 +0000 |
commit | 0d7a94e31d3d0209c0dc520d55ff946f3e8c8bfc (patch) | |
tree | 2f41e8b72f5e3068439d3fae8a6e4cd26a87d42f /lib/webrick | |
parent | 2fb032b74be9f306fbd2f95d85f8352f4a6027d6 (diff) | |
download | ruby-0d7a94e31d3d0209c0dc520d55ff946f3e8c8bfc.tar.gz |
* lib/net/http/responses.rb: Add RFC 6586 response codes. Patch by
Sangil Jung. [ruby-trunk - Feature #6480]
* lib/net/http/response.rb: ditto
* lib/net/http.rb: ditto
* lib/webrick/httpstatus.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick')
-rw-r--r-- | lib/webrick/httpstatus.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb index 9eee38a40f..5d364e598a 100644 --- a/lib/webrick/httpstatus.rb +++ b/lib/webrick/httpstatus.rb @@ -88,12 +88,16 @@ module WEBrick 415 => 'Unsupported Media Type', 416 => 'Request Range Not Satisfiable', 417 => 'Expectation Failed', + 428 => 'Precondition Required', + 429 => 'Too Many Requests', + 431 => 'Request Header Fields Too Large', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', - 505 => 'HTTP Version Not Supported' + 505 => 'HTTP Version Not Supported', + 511 => 'Network Authentication Required', } # Maps a status code to the corresponding Status class |