pub enum AuthentikError {
Unauthenticated,
Forbidden {
required_group: String,
},
}Expand description
Error type for authentik authentication failures.
Derives Response from the apiresponse crate, which provides
structured error codes, module-prefixed messages, and HTTP status codes.
Error responses are always JSON via ApiResponse.
All variants implement IntoResponse, so they can be returned directly
from handler functions as Result<T, AuthentikError>.
§Error codes
| Variant | Code | HTTP Status |
|---|---|---|
Unauthenticated | 1000 | 401 |
Forbidden | 1001 | 403 |
Variants§
Unauthenticated
The user is not authenticated (missing or invalid auth headers).
Forbidden
The user is authenticated but does not have the required permissions.
Trait Implementations§
Source§impl Debug for AuthentikError
impl Debug for AuthentikError
Source§impl Display for AuthentikError
impl Display for AuthentikError
Source§impl Error for AuthentikError
impl Error for AuthentikError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl IntoResponse for AuthentikError
impl IntoResponse for AuthentikError
Source§fn into_response(self) -> AxumResponse
fn into_response(self) -> AxumResponse
Create a response.
Source§impl Response for AuthentikError
impl Response for AuthentikError
Auto Trait Implementations§
impl Freeze for AuthentikError
impl RefUnwindSafe for AuthentikError
impl Send for AuthentikError
impl Sync for AuthentikError
impl Unpin for AuthentikError
impl UnsafeUnpin for AuthentikError
impl UnwindSafe for AuthentikError
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