Instance Propertyhummingbird 2.15.0Hummingbird
headers
response headers
var headers: HTTPFieldsresponse headers
var headers: HTTPFieldss11Hummingbird9HTTPErrorV7headers9HTTPTypes10HTTPFieldsVvp What are these?59A6Wimport Hummingbirdstruct HTTPErrorDefault HTTP error. Provides an HTTP status and a message
init(_ status: HTTPResponse.Status) Initialize HTTPError
init(_ status: HTTPResponse.Status, headers: HTTPFields, message: String? = nil) Initialize HTTPError
init(_ status: HTTPResponse.Status, message: String) Initialize HTTPError
var body: String?error message
var description: String { get }Description of error for logging
var status: HTTPResponse.Statusfunc response(from request: Request, context: some RequestContext) throws -> Response