pub fn api_error_from_response(parts: &Parts, body: &[u8]) -> ApiErrorExpand 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.