pub fn deserialize_api_error(status: StatusCode, body: &[u8]) -> AnthropicErrorExpand description
Deserializes an API error from the response body
Attempts to parse the error as JSON, falling back to plain text on failure.
pub fn deserialize_api_error(status: StatusCode, body: &[u8]) -> AnthropicErrorDeserializes an API error from the response body
Attempts to parse the error as JSON, falling back to plain text on failure.