Skip to main content

parse_api_error

Function parse_api_error 

Source
pub fn parse_api_error(http_status: u16, body: &[u8]) -> (u16, String)
Expand description

Parses Gmail’s JSON error envelope, falling back to the raw body; returns the effective status code and message.