Function poem::error::ImATeapot

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

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