err

Function err 

Source
pub fn err<T>(code: StatusCode, body: impl Into<Msg>) -> Result<T, Err>