Skip to main content

json_error

Function json_error 

Source
pub fn json_error(
    status: StatusCode,
    message: impl Into<String>,
) -> HttpResponse
Expand description

Build bamboo’s canonical JSON error response for code paths that cannot return an AppError directly (most notably middleware and handlers that must preserve extra response headers).