[][src]Macro tophat::glitch

macro_rules! glitch {
    () => { ... };
    ($code:expr) => { ... };
    ($code:expr, $context:expr) => { ... };
}

Convenience macro for creating a Glitch.

glitch!(): 500 glitch!(StatusCode::BadRequest): 400 glitch!(StatusCode::BadRequest, "custom error"): 400 with message in body