Http module

internal_error

procedureextensionexperimentalSource

An Http_Error with status 500, for when something failed that is not the caller's fault. format and args make the detail text as tprint does, in the temporary allocator.

Example
assert(internal_error("the disk is full").status == 500);

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

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

Parameters

format := ""
args: ..Any

Returns

See also