cloud_sdk_reqwest/shared/error.rs
1/// Client construction failure.
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3pub enum BuildError {
4 /// FIPS transport construction omitted its required trust and revocation policy.
5 FipsTlsPolicyRequired,
6 /// The FIPS trust policy contained no trust anchors.
7 FipsTrustRootsRequired,
8 /// The FIPS trust policy contained no certificate revocation lists.
9 FipsCertificateRevocationListsRequired,
10 /// The selected cryptographic provider did not report FIPS operation.
11 FipsProviderRejected,
12 /// Rustls could not enable its safe protocol-version set for the FIPS provider.
13 FipsProtocolConfigurationFailed,
14 /// The chain-wide, fail-closed certificate revocation verifier could not be configured.
15 FipsRevocationVerifierFailed,
16 /// The complete TLS client configuration did not report FIPS operation.
17 FipsClientConfigurationRejected,
18 /// Reqwest rejected the fixed hardened client configuration.
19 ClientBuildFailed,
20}
21
22/// Payload-free transport failure.
23#[derive(Clone, Copy, Debug, Eq, PartialEq)]
24pub enum TransportError {
25 /// The target could not be composed without parsing or normalization.
26 TargetRejected,
27 /// A non-empty body omitted its required explicit content type.
28 MissingContentType,
29 /// A validated header could not be represented by the HTTP implementation.
30 HeaderRejected,
31 /// Adapter-owned request-body allocation failed.
32 RequestBodyAllocationFailed,
33 /// The request body length cannot be represented by the HTTP client.
34 RequestBodyTooLarge,
35 /// Adapter-owned response-body allocation failed.
36 ResponseBodyAllocationFailed,
37 /// Connection establishment failed.
38 ConnectFailed,
39 /// The configured request or read deadline expired.
40 TimedOut,
41 /// Sending failed for another payload-free reason.
42 RequestFailed,
43 /// The response status is outside the core SDK's admitted HTTP range.
44 InvalidStatus,
45 /// Rate-limit response headers were incomplete, non-decimal, or incoherent.
46 InvalidRateLimitHeaders,
47 /// The declared or observed response body exceeds the caller buffer.
48 ResponseTooLarge,
49 /// Reading the response body failed.
50 ResponseReadFailed,
51 /// The final response origin differed from the configured endpoint.
52 ResponseOriginChanged,
53}