//! Failure cases for authentication.
use Error;
/// Failure cases for authentication.
///
/// `Missing` and `Malformed` describe transport-level rejections (no
/// header / wrong scheme); `Rejected` carries an authenticator-supplied
/// diagnostic string that MUST stay server-side — handlers map this to
/// a JSON-RPC `-32001 Unauthenticated` envelope on the wire without
/// echoing the inner message.