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