Skip to main content

api_error_from_response

Function api_error_from_response 

Source
pub fn api_error_from_response(parts: &Parts, body: &[u8]) -> ApiError
Expand description

For a response with status ≥ 300: the ApiError built from the JSON error body (error.code / message / errors / details), the raw body and the headers.