Macro rouille::try_or_404 [−][src]
macro_rules! try_or_404 {
($result : expr) => { ... };
}
Expand description
This macro assumes that the current function returns a Response
and takes a Result
.
If the expression you pass to the macro is an error, then a 404 response is returned.