Function ErrorMethodNotAllowed

Source
pub fn ErrorMethodNotAllowed<T>(err: T) -> Error
where T: Debug + Display + 'static,
Expand description

Helper function that creates wrapper of any error and generate METHOD NOT ALLOWED response.