Function mz_environmentd::http::handle_load_error

source ·
async fn handle_load_error(error: BoxError) -> impl IntoResponse
Expand description

Glue code to make tower work with axum.

axum requires Layers not return Errors, i.e. they must be Result<_, Infallible>, instead you must return a type that can be converted into a response. tower on the other hand does return Errors, so to make the two work together we need to convert our tower errors into responses.