pub fn NotAcceptable(err: impl StdError + Send + Sync + 'static) -> Error
Expand description

Wraps any error into Error and the status code is StatusCode::NOT_ACCEPTABLE.