pub enum ProxyErrorCode {
Show 49 variants
RouteRejected,
HeaderRejected,
InvalidUpstreamHeader,
SessionIdentityRequired,
UnexpectedSessionHeader,
SessionExpired,
SessionGenerationConflict,
SessionCommitFailure,
PrincipalRequired,
PrincipalRejected,
RegistryCapacity,
InvalidUpstreamUrl,
ProxyConfiguration,
UnsupportedContentEncoding,
InvalidFraming,
RequestBodyLimitExceeded,
ResponseBodyLimitExceeded,
HeaderLimitExceeded,
InvalidRequestFormat,
InvalidUpstreamResponseFormat,
DuplicateObjectKey,
InternalCoverageFailure,
ControlWouldMutate,
OpaqueMediaUninspected,
InvalidProvenance,
InvalidToken,
SignedMutationRequired,
SignedSurfaceMalformed,
InvalidSseLifecycle,
InvalidContentBlockIndex,
ConnectTimeout,
RequestTimeout,
TotalTimeout,
UpstreamRedirect,
UpstreamBadRequest,
UpstreamUnauthorized,
UpstreamForbidden,
UpstreamNotFound,
UpstreamConflict,
UpstreamPayloadTooLarge,
UpstreamRateLimited,
UpstreamClientFailure,
UpstreamUnavailable,
UpstreamServerFailure,
UpstreamUnreachable,
UpstreamProtocol,
InspectionInternal,
InvalidStateTransition,
ProtectionRefused,
}Expand description
Closed failure codes used by the direct proxy profile.
Unlike ProxyError, this surface never stores provider, request, URL, parser, transport, or
operating-system error text.
Variants§
RouteRejected
HeaderRejected
InvalidUpstreamHeader
SessionIdentityRequired
UnexpectedSessionHeader
SessionExpired
SessionGenerationConflict
SessionCommitFailure
PrincipalRequired
PrincipalRejected
RegistryCapacity
InvalidUpstreamUrl
ProxyConfiguration
UnsupportedContentEncoding
InvalidFraming
RequestBodyLimitExceeded
ResponseBodyLimitExceeded
HeaderLimitExceeded
InvalidRequestFormat
InvalidUpstreamResponseFormat
DuplicateObjectKey
InternalCoverageFailure
ControlWouldMutate
OpaqueMediaUninspected
InvalidProvenance
InvalidToken
SignedMutationRequired
SignedSurfaceMalformed
InvalidSseLifecycle
InvalidContentBlockIndex
ConnectTimeout
RequestTimeout
TotalTimeout
UpstreamRedirect
UpstreamBadRequest
UpstreamForbidden
UpstreamNotFound
UpstreamConflict
UpstreamPayloadTooLarge
UpstreamRateLimited
UpstreamClientFailure
UpstreamServerFailure
UpstreamUnreachable
UpstreamProtocol
InspectionInternal
InvalidStateTransition
ProtectionRefused
Request protection refused a surface; the error carries the typed refusal.
Implementations§
Source§impl ProxyErrorCode
impl ProxyErrorCode
Sourcepub const fn error(self, phase: ProxyErrorPhase) -> DirectProxyError
pub const fn error(self, phase: ProxyErrorPhase) -> DirectProxyError
Constructs a sanitized direct-profile error at a closed phase.
Sourcepub const fn http_status(self) -> StatusCode
pub const fn http_status(self) -> StatusCode
Returns the single reviewed downstream status for this code.
Trait Implementations§
Source§impl Clone for ProxyErrorCode
impl Clone for ProxyErrorCode
impl Copy for ProxyErrorCode
Source§impl Debug for ProxyErrorCode
impl Debug for ProxyErrorCode
impl Eq for ProxyErrorCode
Source§impl PartialEq for ProxyErrorCode
impl PartialEq for ProxyErrorCode
impl StructuralPartialEq for ProxyErrorCode
Auto Trait Implementations§
impl Freeze for ProxyErrorCode
impl RefUnwindSafe for ProxyErrorCode
impl Send for ProxyErrorCode
impl Sync for ProxyErrorCode
impl Unpin for ProxyErrorCode
impl UnsafeUnpin for ProxyErrorCode
impl UnwindSafe for ProxyErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more