macro_rules! ruest_err {
(BadRequest, $msg:expr) => { ... };
(NotFound, $msg:expr) => { ... };
(Conflict, $msg:expr) => { ... };
(Internal, $msg:expr) => { ... };
(Unauthorized, $msg:expr) => { ... };
(Forbidden, $msg:expr) => { ... };
}Expand description
Erreur HTTP lisible : return Err(ruest_err!(BadRequest, "message"));