class

Srcom::StatusException

Inherits Exception / Reference / Object

This exception is raised in Api#request and Api#request_single_item when a request fails in general, without returning a special error response.

Constructors

new(response : HTTP::Client::Response)
Source

Instance methods

message
Source
response
Source
status_code

The status code of the response that caused this exception, for example 500 or 418.

Source
status_message

The status message of the response that caused this exception, for example "Internal Server Error" or "I'm A Teapot".

Source
to_s(io)
Source