diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-05 03:31:31 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-05 03:31:31 +0000 |
commit | be53f329f79c4f31ba29646be63061885fd6bbfb (patch) | |
tree | ff238febfe3357ed35fbfd1b4b509cf1e8db730e /lib | |
parent | d5db3754f93f8497bd8517ea21c6813c664eadc2 (diff) | |
download | ruby-be53f329f79c4f31ba29646be63061885fd6bbfb.tar.gz |
Fix 4xx classes to inherit correctly from Net::HTTPClientError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http/responses.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb index fbaa947f65..38a5da2443 100644 --- a/lib/net/http/responses.rb +++ b/lib/net/http/responses.rb @@ -142,17 +142,17 @@ class Net::HTTPExpectationFailed < Net::HTTPClientError # 417 end # 418 I'm a teapot - RFC 2324; a joke RFC # 420 Enhance Your Calm - Twitter -class Net::HTTPUnprocessableEntity < Net::HTTPSuccess # 422 - RFC 4918 +class Net::HTTPUnprocessableEntity < Net::HTTPClientError # 422 - RFC 4918 HAS_BODY = true end -class Net::HTTPLocked < Net::HTTPSuccess # 423 - RFC 4918 +class Net::HTTPLocked < Net::HTTPClientError # 423 - RFC 4918 HAS_BODY = true end -class Net::HTTPFailedDependency < Net::HTTPSuccess # 424 - RFC 4918 +class Net::HTTPFailedDependency < Net::HTTPClientError # 424 - RFC 4918 HAS_BODY = true end # 425 Unordered Collection - existed only in draft -class Net::HTTPUpgradeRequired < Net::HTTPSuccess # 426 - RFC 2817 +class Net::HTTPUpgradeRequired < Net::HTTPClientError # 426 - RFC 2817 HAS_BODY = true end class Net::HTTPPreconditionRequired < Net::HTTPClientError # 428 - RFC 6585 |