#[non_exhaustive]pub enum ChallengeError {
NotAChallenge,
Incomplete,
BidDown,
NoSupportedAlgorithm,
CredentialsRejected,
Unusable(String),
}Expand description
Why a 401 or 438 error response does not lead to a retry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotAChallenge
The response is not an error response with code 401 or 438.
Incomplete
The response has no REALM or no NONCE, or one of them is not text.
BidDown
The nonce cookie has the “Password algorithms” bit set but the response carries no PASSWORD-ALGORITHMS: the attribute was removed on the way (a bid-down attack). RFC 8489 section 9.2.5: the client MUST NOT retry.
NoSupportedAlgorithm
PASSWORD-ALGORITHMS lists no algorithm this client supports. RFC 8489 section 9.2.5: the client MUST NOT retry.
CredentialsRejected
A 401 to a request that was already authenticated with the same user name, realm and password algorithm: the credentials are wrong, and retrying without changing them is what RFC 8489 section 9.2.5 forbids.
Unusable(String)
The realm, the user name or the password cannot be used (not an OpaqueString), or the crypto provider failed.
Trait Implementations§
Source§impl Clone for ChallengeError
impl Clone for ChallengeError
Source§impl Debug for ChallengeError
impl Debug for ChallengeError
Source§impl Display for ChallengeError
impl Display for ChallengeError
impl Eq for ChallengeError
Source§impl Error for ChallengeError
impl Error for ChallengeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()