Http module

input_error

procedure · 1 overloadSource

The error for bad input found by an extractor: names where the input came from and which part.

input_error :: (
    status: int,
    location: string,
    field: string,
    detail: string
) -> Http_Error

The error for bad input found by an extractor: names where the input came from and which part.

Parameters

status: int
usually 400 or 422.
location: string
where the bad input came from, such as "query" or "body".
field: string
which part of it was bad.
detail: string
what is wrong with it.

Returns

See also