Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Net::HTTPForbidden

Response class for Forbidden responses (status code 403).

The request contained valid data and was understood by the server, but the server is refusing action.

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

References: