pub fn error_for_status(
app: &str,
operation: &str,
status: i32,
body: &[u8],
) -> Result<(), Box<InvokeResultError>>Expand description
Returns the payload failure an HTTP-error status (>= 400) decodes to,
mirroring reqwest’s Response::error_for_status; any other status returns
Ok. The error carries exactly what decode_app_result would attach for
the same status and body.