Skip to main content

parse_error

Function parse_error 

Source
fn parse_error(route: TypeId, error: &FromHttpRequestError) -> Error
Expand description

Maps a request that failed to parse to its error.

Malformed input answers M_BAD_JSON. On the routes whose MSC names parameter errors, an absent required field answers M_MISSING_PARAM instead, and any other unparsable value, path and query parameters included, answers M_INVALID_PARAM.