diff options
Diffstat (limited to 'lib/net/http.rb')
-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 82274b11dd..f5b70188db 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 |