Skip to main content

refuse

Function refuse 

Source
fn refuse(status: StatusCode, error: impl Serialize) -> Response
Expand description

A JSON { "error": .. } reply with status.