diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb index 55ae97d95d..50352032df 100644 --- a/lib/net/http/responses.rb +++ b/lib/net/http/responses.rb @@ -19,7 +19,7 @@ class Net::HTTPRedirection < Net::HTTPResponse # 3xx end class Net::HTTPClientError < Net::HTTPResponse # 4xx HAS_BODY = true - EXCEPTION_TYPE = Net::HTTPServerException # for backward compatibility + EXCEPTION_TYPE = Net::HTTPClientException # for backward compatibility end class Net::HTTPServerError < Net::HTTPResponse # 5xx HAS_BODY = true