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/net/http.rb | |
parent | 2fb032b74be9f306fbd2f95d85f8352f4a6027d6 (diff) |
* 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/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 40a479cd4d..a2a1b935bd 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -347,6 +347,9 @@ module Net #:nodoc: # HTTPUnsupportedMediaType:: 415 # HTTPRequestedRangeNotSatisfiable:: 416 # HTTPExpectationFailed:: 417 + # HTTPPreconditionRequired:: 428 + # HTTPTooManyRequests:: 429 + # HTTPRequestHeaderFieldsTooLarge:: 431 # HTTPServerError:: 5xx # HTTPInternalServerError:: 500 # HTTPNotImplemented:: 501 @@ -354,6 +357,7 @@ module Net #:nodoc: # HTTPServiceUnavailable:: 503 # HTTPGatewayTimeOut:: 504 # HTTPVersionNotSupported:: 505 + # HTTPNetworkAuthenticationRequired:: 511 # # There is also the Net::HTTPBadResponse exception which is raised when # there is a protocol error. |