Skip to main content

refuse

Function refuse 

Source
pub(super) fn refuse(
    error: &str,
    message: impl Into<String>,
    extra: Value,
) -> Response
Expand description

A refusal: HTTP 200 with the spec’s {ok:false, error, message} shape, so the agent reads it as an answer.