Macro anyhow_http::http_error
source · macro_rules! http_error { ($status_code:ident $(, source = $src:ident)? $(, reason = $($arg:tt)*)?) => { ... }; ($status_code:ident $(, $($arg:tt)*)?) => { ... }; }
Expand description
Construct an ad-hoc HttpError from a status code, optional source error and formatted reason.