Skip to main content

error_from_response

Function error_from_response 

Source
pub fn error_from_response(status_code: u16, body: &[u8]) -> TesseraError
Expand description

Build the appropriate TesseraError from an error response.

Prefers the {"error": "<code>"} body; falls back to the HTTP status.