class Bezel::Error < HTTP::Error

The root of the errors an application raises to answer with a status: raise Bezel::NotFound in an action is a 404. The endpoint turns each into its status, with the error page (Bezel::ErrorPage); any other StandardError is a 500. Being an HTTP::Error, it is also answered with its status by a bare HTTP::Server.

src/errors.qz:6

Class methods

def self.new(status: Int, message: String = …) -> Bezel::Error

An error answered with status.

src/errors.qz:8