Skip to main content

check_status

Function check_status 

Source
pub async fn check_status(resp: Response) -> Result<Response>
Expand description

Validates a response’s status, turning a non-2xx status into Error::Status (consuming the body for the error message).