class Net::HTTPUnauthorized

Response class for Unauthorized responses (status code 401).

Authentication is required, but either was not provided or failed.

This class also includes (indirectly) module Net::HTTPHeader, which gives access to its methods for getting headers.

References:

Constants

HAS_BODY