Skip to main content

failure_from_response

Function failure_from_response 

Source
pub fn failure_from_response(body: &str, context: &str) -> Failure
Expand description

Turns a Choir error response into a Failure, preserving its code.

A body that does not parse as a typed rejection still has to produce something an orchestrator can branch on, so it becomes a transient choir_unavailable rather than being dropped.