Enum actix_web_httpauth::headers::www_authenticate::bearer::Error [−][src]
pub enum Error {
InvalidRequest,
InvalidToken,
InsufficientScope,
}
Expand description
Bearer authorization error types, described in RFC 6750
Variants
The request is missing a required parameter, includes an unsupported parameter or parameter value, repeats the same parameter, uses more than one method for including an access token, or is otherwise malformed.
The access token provided is expired, revoked, malformed, or invalid for other reasons.
The request requires higher privileges than provided by the access token.
Implementations
Returns HTTP status code suitable for current error type.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self