Http module

unprocessable

procedureextensionexperimentalSource

An Http_Error with status 422, for when the request is well-formed but its content cannot be processed. format and args make the detail text as tprint does, in the temporary allocator.

Example
assert(unprocessable("age must be positive").status == 422);

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

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

Parameters

format := ""
args: ..Any

Returns

See also