pub type UreqError = Error<Error>;Expand description
Errors returned by UreqClient.
Aliased Type§
pub enum UreqError {
Validation {
field: String,
message: String,
},
Configuration(String),
Transport(Error),
Timeout {
timeout: Duration,
},
Decode {
status: StatusCode,
request_id: Option<String>,
headers: Box<HeaderMap>,
body: Vec<u8>,
source: Error,
},
Api {
status: StatusCode,
request_id: Option<String>,
headers: Box<HeaderMap>,
body: Vec<u8>,
retry_after: Option<Duration>,
attempts: u64,
},
IncompleteEvaluation,
}Variants§
Validation
The request violates a documented API constraint.
Fields
Configuration(String)
The client configuration is invalid.
Transport(Error)
The HTTP exchange failed before a response was available.
Timeout
The configured per-attempt timeout elapsed.
Decode
A successful HTTP response could not be decoded.
Fields
§
status: StatusCodeHTTP status returned by the API.
Api
The API returned a non-success status.
Fields
§
status: StatusCodeHTTP status returned by the API.
IncompleteEvaluation
An application-supplied event sequence ended before a terminal event.