Skip to main content

json_error_response

Function json_error_response 

Source
fn json_error_response(
    status: StatusCode,
    error: &str,
    message: &str,
) -> Response
Expand description

Helper function to create a JSON error response