Discord::StatusException
Inherits Exception / Reference / Object
This exception is raised in REST#request when a request fails in general,
without returning a special error response.
Constructors
new(response : HTTP::Client::Response)
SourceInstance methods
message
Sourceresponse
Sourcestatus_code
The status code of the response that caused this exception, for example 500 or 418.
status_message
The status message of the response that caused this exception, for example "Internal Server Error" or "I'm A Teapot".
to_s(io)
Source