Http module

error_response

procedure · 1 overloadSource

The response for an error: what app.on_error returns, or the problem document. Middleware use it to answer without calling next.

error_response :: (request: *Request, error: Http_Error) -> Response

The response for an error: what app.on_error returns, or the problem document. Middleware use it to answer without calling next.

Parameters

request: *Request
error: Http_Error

Returns

See also