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

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