Macro not_found
Source macro_rules! not_found {
() => { ... };
({ $($json:tt)* }) => { ... };
([ $( ($key:expr, $value:expr) ),* $(,)? ]) => { ... };
($var:ident) => { ... };
($body:expr, [ $( ($key:expr, $value:expr) ),* $(,)? ]) => { ... };
($fmt:tt) => { ... };
($body:expr) => { ... };
($($fmt:tt)*) => { ... };
}
Expand description
Produces HTTP 404 NOT FOUND response
§Examples
§Without body
use volga::not_found;
not_found!();
§plain/text body
use volga::not_found;
not_found!("User not found!");