async fn generate_error_response( status_code: StatusCode, config: &Yaml, headers: &Option<HeaderMap>, ) -> Response<BoxBody<Bytes, Error>>