Skip to main content

problem_response

Function problem_response 

Source
pub fn problem_response(
    kind: AppErrorKind,
    detail: impl Into<String>,
) -> Response
Expand description

Build a problem+json response from a kind + detail string, bypassing the full AppError construction path. Used by fallbacks and the rejection-normalising middleware where we already know the status.