Skip to main content

upstream_status_error

Function upstream_status_error 

Source
pub async fn upstream_status_error(
    context: &str,
    response: Response,
) -> ProxyHttpError
Expand description

Convert an unsuccessful upstream response into a 502 Bad Gateway ProxyHttpError that captures the upstream status and body.