diff --git a/lib/net/http/exceptions.rb b/lib/net/http/exceptions.rb index da5f7a70..d5ca3a6f 100644 --- a/lib/net/http/exceptions.rb +++ b/lib/net/http/exceptions.rb @@ -16,13 +16,13 @@ class Net::HTTPError < Net::ProtocolError class Net::HTTPRetriableError < Net::ProtoRetriableError include Net::HTTPExceptions end -class Net::HTTPServerException < Net::ProtoServerError - # We cannot use the name "HTTPServerError", it is the name of the response. +class Net::HTTPClientException < Net::ProtoServerError include Net::HTTPExceptions end # for compatibility -Net::HTTPClientException = Net::HTTPServerException +Net::HTTPServerException = Net::HTTPClientException # :nodoc: +# We cannot use the name "HTTPServerError", it is the name of the response. class Net::HTTPFatalError < Net::ProtoFatalError include Net::HTTPExceptions