Http module

http_error

procedure · 1 overloadSource

An error with a status and a detail text (used as it is). The named helpers below take a tprint format instead: not_found("No user %", id).

http_error :: (status: int, detail := "") -> Http_Error

An error with a status and a detail text (used as it is). The named helpers below take a tprint format instead: not_found("No user %", id).

Parameters

status: int
the HTTP status code.
detail := ""
text for the client, used as it is.

Returns

See also