Actions
Feature #14688
closedNet::HTTPResponse#value raises "Net::HTTPServerException" in 4xx response
Feature #14688:
Net::HTTPResponse#value raises "Net::HTTPServerException" in 4xx response
Description
Call value
method to an instance of Net::HTTPResponse
it raises Net::HTTPServerException
in case of HTTP response status code is 4xx.
But HTTP response status code 4xx means "Client error response" not "Server response" so I think that's wrong naming.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Client_error_responses
Therefore, I think it's maybe specifications bug, but it cause breaking changes in many ruby programs to change exception name.
I propose to create Net::HTTPClientException
as alias of the Net::HTTPServerException
for compatibility.
Files
Actions