cloud_sdk_reqwest/shared/error.rs
1/// Client construction failure.
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3pub enum BuildError {
4 /// Reqwest rejected the fixed hardened client configuration.
5 ClientBuildFailed,
6}
7
8/// Payload-free transport failure.
9#[derive(Clone, Copy, Debug, Eq, PartialEq)]
10pub enum TransportError {
11 /// The target could not be composed without parsing or normalization.
12 TargetRejected,
13 /// A non-empty body omitted its required explicit content type.
14 MissingContentType,
15 /// A validated header could not be represented by the HTTP implementation.
16 HeaderRejected,
17 /// Adapter-owned request-body allocation failed.
18 RequestBodyAllocationFailed,
19 /// The request body length cannot be represented by the HTTP client.
20 RequestBodyTooLarge,
21 /// Adapter-owned response-body allocation failed.
22 ResponseBodyAllocationFailed,
23 /// Connection establishment failed.
24 ConnectFailed,
25 /// The configured request or read deadline expired.
26 TimedOut,
27 /// Sending failed for another payload-free reason.
28 RequestFailed,
29 /// The response status is outside the core SDK's admitted HTTP range.
30 InvalidStatus,
31 /// Rate-limit response headers were incomplete, non-decimal, or incoherent.
32 InvalidRateLimitHeaders,
33 /// The declared or observed response body exceeds the caller buffer.
34 ResponseTooLarge,
35 /// Reading the response body failed.
36 ResponseReadFailed,
37 /// The final response origin differed from the configured endpoint.
38 ResponseOriginChanged,
39}