pub fn MethodNotAllowed(err: impl StdError + Send + Sync + 'static) -> Error
Wraps any error into Error and the status code is StatusCode::METHOD_NOT_ALLOWED.
Error
StatusCode::METHOD_NOT_ALLOWED