pub struct ErrorCodes;
Expand description
Standard error codes used across the API
Implementations§
Source§impl ErrorCodes
impl ErrorCodes
pub const INVALID_CREDENTIALS: &'static str = "INVALID_CREDENTIALS"
pub const TOKEN_EXPIRED: &'static str = "TOKEN_EXPIRED"
pub const TOKEN_INVALID: &'static str = "TOKEN_INVALID"
pub const MFA_REQUIRED: &'static str = "MFA_REQUIRED"
pub const MFA_INVALID: &'static str = "MFA_INVALID"
pub const INSUFFICIENT_PERMISSIONS: &'static str = "INSUFFICIENT_PERMISSIONS"
pub const FORBIDDEN: &'static str = "FORBIDDEN"
pub const UNAUTHORIZED: &'static str = "UNAUTHORIZED"
pub const VALIDATION_ERROR: &'static str = "VALIDATION_ERROR"
pub const INVALID_REQUEST: &'static str = "INVALID_REQUEST"
pub const MISSING_PARAMETER: &'static str = "MISSING_PARAMETER"
pub const NOT_FOUND: &'static str = "NOT_FOUND"
pub const ALREADY_EXISTS: &'static str = "ALREADY_EXISTS"
pub const CONFLICT: &'static str = "CONFLICT"
pub const RATE_LIMITED: &'static str = "RATE_LIMITED"
pub const TOO_MANY_REQUESTS: &'static str = "TOO_MANY_REQUESTS"
pub const INTERNAL_ERROR: &'static str = "INTERNAL_ERROR"
pub const SERVICE_UNAVAILABLE: &'static str = "SERVICE_UNAVAILABLE"
pub const MAINTENANCE_MODE: &'static str = "MAINTENANCE_MODE"
pub const INVALID_GRANT: &'static str = "INVALID_GRANT"
pub const UNSUPPORTED_GRANT_TYPE: &'static str = "UNSUPPORTED_GRANT_TYPE"
pub const INVALID_CLIENT: &'static str = "INVALID_CLIENT"
pub const INVALID_SCOPE: &'static str = "INVALID_SCOPE"
Source§impl ErrorCodes
Error code utility functions
impl ErrorCodes
Error code utility functions
Sourcepub fn is_retryable(code: &str) -> bool
pub fn is_retryable(code: &str) -> bool
Check if an error code is retryable
Sourcepub fn description(code: &str) -> &'static str
pub fn description(code: &str) -> &'static str
Get human-readable description for error code
Auto Trait Implementations§
impl Freeze for ErrorCodes
impl RefUnwindSafe for ErrorCodes
impl Send for ErrorCodes
impl Sync for ErrorCodes
impl Unpin for ErrorCodes
impl UnwindSafe for ErrorCodes
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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