Function error_from_status

Source
pub fn error_from_status(status: u16, body: &str) -> RovenueError
Expand description

Map an HTTP error status + response body to a RovenueError, preserving the backend {"error":{"code","message"}} envelope when present.