pub enum RawHttpError {
Show 31 variants
ResponseAlreadyCommitted,
TargetRejected,
MethodRejected,
MissingContentType,
HeaderRejected,
RequestHeaderAllocationFailed,
RequestBodyAllocationFailed,
RequestBodyTooLarge,
RequestBuildFailed,
RuntimeInitializationFailed,
BlockingRuntimeContext,
ConnectFailed,
TimedOut,
RequestFailed,
ResponseOriginChanged,
InvalidStatus,
SwitchingProtocols,
TooManyInformationalResponses,
ResponseHeadTooLarge,
DuplicateResponseHeader,
ResponseTrailersRejected,
InvalidNoBodyFraming,
MissingResponseContentType,
InvalidResponseContentType,
UnexpectedResponseContentType,
ForbiddenResponseContentType,
InvalidResponseHeader,
ResponseTooLarge,
ResponseChunkLimitExceeded,
ResponseReadFailed,
ResponseCommitFailed,
}Expand description
Payload-free raw HTTP execution failure.
Variants§
ResponseAlreadyCommitted
The supplied response writer was already committed.
TargetRejected
Endpoint and request-target composition failed.
MethodRejected
The validated method could not be represented by reqwest.
MissingContentType
A non-empty request body omitted Content-Type.
HeaderRejected
A request header could not be represented by reqwest.
RequestHeaderAllocationFailed
Adapter-owned request-header staging allocation failed.
RequestBodyAllocationFailed
Adapter-owned request-body staging allocation failed.
RequestBodyTooLarge
Request-body length cannot be represented by the HTTP implementation.
RequestBuildFailed
Construction of the exact raw request failed.
RuntimeInitializationFailed
The blocking adapter could not construct its private executor.
BlockingRuntimeContext
The blocking adapter was called from an active Tokio runtime.
ConnectFailed
Connection establishment failed.
TimedOut
A configured request or read deadline expired.
RequestFailed
Sending failed without a more precise payload-free classification.
ResponseOriginChanged
The final response origin differed from the configured endpoint.
InvalidStatus
The final status was outside the core HTTP status domain.
SwitchingProtocols
101 Switching Protocols is forbidden.
TooManyInformationalResponses
More informational responses were observed than admitted.
ResponseHeadTooLarge
The response head exceeded pinned upstream count or byte bounds.
DuplicateResponseHeader
A response header name occurred more than once.
ResponseTrailersRejected
A response declared trailers while the raw policy rejects them.
InvalidNoBodyFraming
A no-body response used forbidden framing.
MissingResponseContentType
A response content type was required but absent.
InvalidResponseContentType
A response content type was malformed.
UnexpectedResponseContentType
A response content type did not match the selected status policy.
ForbiddenResponseContentType
A response content type was present when forbidden.
InvalidResponseHeader
A retained response header violated core bounds.
ResponseTooLarge
The declared or observed response body exceeded its status-class limit.
ResponseChunkLimitExceeded
A response exceeded the fixed chunk-observation budget.
ResponseReadFailed
Reading the response body failed.
ResponseCommitFailed
The core response writer rejected final commitment.
Trait Implementations§
Source§impl Clone for RawHttpError
impl Clone for RawHttpError
Source§fn clone(&self) -> RawHttpError
fn clone(&self) -> RawHttpError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RawHttpError
Source§impl Debug for RawHttpError
impl Debug for RawHttpError
Source§impl Display for RawHttpError
impl Display for RawHttpError
impl Eq for RawHttpError
Source§impl Error for RawHttpError
impl Error for RawHttpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()