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

Method unauthorized

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

Create an unauthorized (401) error.

(message: impl Into<String>)

Source from the content-addressed store, hash-verified

295
296 /// Create an unauthorized (401) error.
297 pub fn unauthorized(message: impl Into<String>) -> Self {
298 Self::HttpError {
299 status: 401,
300 message: message.into(),
301 }
302 }
303
304 /// Create a forbidden (403) error.
305 pub fn forbidden(message: impl Into<String>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected