class HTTP::Error < StandardError
Answered with its status (and its message as a text body) when a handler raises it; the parser raises the subclasses.
<std:http>:17
Class methods
def self.new(status: Int, message: String = …) -> HTTP::Error
An error answered with status and, unless it is empty, message as
a text body (the reason phrase otherwise).
HTTP::Error.new(403, "members only").status # => 403
<std:http>:26
Methods
def status -> Int
The status the server answers with.
<std:http>:31