MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_auth_error

Method is_auth_error

atomic-remote/src/error.rs:345–352  ·  view source on GitHub ↗

Check if this is an authentication error.

(&self)

Source from the content-addressed store, hash-verified

343
344 /// Check if this is an authentication error.
345 pub fn is_auth_error(&self) -> bool {
346 matches!(
347 self,
348 Self::AuthenticationFailed { .. }
349 | Self::HttpError { status: 401, .. }
350 | Self::HttpError { status: 403, .. }
351 )
352 }
353
354 /// Check if this is a "not found" error.
355 pub fn is_not_found(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected