Http module

forbidden

procedureextensionexperimentalSource

An Http_Error with status 403, for when the caller is known but not allowed. format and args make the detail text as tprint does, in the temporary allocator.

Example
error := forbidden("admins only");
assert(error.status == 403);

Doesn't run in the browser (skipped on wasm).

forbidden :: (format := "", args: ..Any) -> Http_Error

Parameters

format := ""
args: ..Any

Returns

See also