pub fn parse_api_error(http_status: u16, body: &[u8]) -> (u16, String, String)Expand description
Parse a Microsoft Graph error envelope into its
(http_status, code, message) triple.
The envelope is { "error": { "code", "message" } }; when the body
is not that JSON shape the raw body text becomes the message, and
empty or missing parts fall back to unknown markers.