pub fn box_error<E: Error + Send + 'static>(error: E) -> BoxError
A helper to convert a concrete error type into a Box<dyn Error + Send>
Box<dyn Error + Send>
Response::builder().body(Body::empty()).map_err(box_error);