pub enum AppError {
Sealed,
Unauthorized(String),
Forbidden(String),
NotFound(String),
BadRequest(String),
Conflict(String),
Internal(String),
}Expand description
Application-level error returned from HTTP handlers.
Variants§
Sealed
The vault is sealed — reject all secret operations.
Authentication failed or token invalid.
Forbidden(String)
Policy denied the operation.
NotFound(String)
Requested resource not found.
BadRequest(String)
Client sent invalid input.
Conflict(String)
A conflict (e.g., already initialized, already mounted).
Internal(String)
Internal server error.
Trait Implementations§
Source§impl From<AppRoleError> for AppError
impl From<AppRoleError> for AppError
Source§fn from(err: AppRoleError) -> Self
fn from(err: AppRoleError) -> Self
Converts to this type from the input type.
Source§impl From<BarrierError> for AppError
impl From<BarrierError> for AppError
Source§fn from(err: BarrierError) -> Self
fn from(err: BarrierError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for AppError
impl From<DatabaseError> for AppError
Source§fn from(err: DatabaseError) -> Self
fn from(err: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<EngineError> for AppError
impl From<EngineError> for AppError
Source§fn from(err: EngineError) -> Self
fn from(err: EngineError) -> Self
Converts to this type from the input type.
Source§impl From<LeaseError> for AppError
impl From<LeaseError> for AppError
Source§fn from(err: LeaseError) -> Self
fn from(err: LeaseError) -> Self
Converts to this type from the input type.
Source§impl From<MountError> for AppError
impl From<MountError> for AppError
Source§fn from(err: MountError) -> Self
fn from(err: MountError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for AppError
impl From<PolicyError> for AppError
Source§fn from(err: PolicyError) -> Self
fn from(err: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for AppError
impl From<TokenError> for AppError
Source§fn from(err: TokenError) -> Self
fn from(err: TokenError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for AppError
impl IntoResponse for AppError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for AppError
impl RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnwindSafe for AppError
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