diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-08 23:29:07 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-08 23:29:07 +0000 |
commit | 78fb40505b4f3167c46973b801cf23d41dd50dac (patch) | |
tree | 08ddd6d6111765421db281ceca851db2f172a076 /lib | |
parent | 1c3b5096cb33c431bedde7f3b089e1180e394179 (diff) | |
download | ruby-78fb40505b4f3167c46973b801cf23d41dd50dac.tar.gz ruby-78fb40505b4f3167c46973b801cf23d41dd50dac.tar.xz ruby-78fb40505b4f3167c46973b801cf23d41dd50dac.zip |
* lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises Net::ProtoFatalError (for backward compatibility).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 82274b11d..f5b70188d 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1257,11 +1257,11 @@ module Net end class HTTPClientError < HTTPResponse # 4xx HAS_BODY = true - EXCEPTION_TYPE = ProtoFatalError + EXCEPTION_TYPE = ProtoServerError # for backward compatibility end class HTTPServerError < HTTPResponse # 5xx HAS_BODY = true - EXCEPTION_TYPE = ProtoServerError + EXCEPTION_TYPE = ProtoFatalError # for backward compatibility end class HTTPContinue < HTTPInformation # 100 |