fn json_error(detail: &str, status: (u32, &'static str)) -> Response {
    let mut response = json_response(&Bad {
        errors: vec![StringError { detail }],
    });
    response.status = status;
    response
}
/// Generates a response with the provided status and description as JSON
Generates a response with the provided status and description as JSON
Generates a response with the provided status and description as JSON
fn json_error(detail: &str, status: (u32, &'static str)) -> Response {
    let mut response = json_response(&Bad {
        errors: vec![StringError { detail }],
    });
    response.status = status;
    response
}
fn json_error ( detail : & str , status : ( u32 , & ' static str ) ) -> Response { let mut response = json_response ( & Bad { errors : vec ! [ StringError { detail } ] , } ) ; response . status = status ; response }
Generates a response with the provided status and description as JSON
Generates a response with the provided status and description as JSON
detail
&str
status
(u32, &'static str)