Http module

status_only

procedureextensionexperimentalSource

An empty response with only a status (status_only(204)).

Example
response := status_only(204);
assert(response.status == 204 && response.body.count == 0);

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

status_only :: (status: int) -> Response

Parameters

status: int

Returns

See also