pub fn error_json(err: &str) -> HttpResponse {
    HttpResponse::Ok().json(ErrorJSON {
        error: String::from(err)
    })
}
/// Returns an error JSON HTTP response
/// 
/// # Arguments
/// 
/// * `err` - The error message
Returns an error JSON HTTP response
Returns an error JSON HTTP response
pub fn error_json(err: &str) -> HttpResponse {
    HttpResponse::Ok().json(ErrorJSON {
        error: String::from(err)
    })
}
pub fn error_json ( err : & str ) -> HttpResponse { HttpResponse :: Ok ( ) . json ( ErrorJSON { error : String :: from ( err ) } ) }
Returns an error JSON HTTP response
Returns an error JSON HTTP response
err
&str
err
&str