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

Method status_error

atomic-remote/src/storage.rs:265–273  ·  view source on GitHub ↗
(&self, status: u16, message: String)

Source from the content-addressed store, hash-verified

263 }
264
265 fn status_error(&self, status: u16, message: String) -> RemoteError {
266 match status {
267 401 => RemoteError::unauthorized(message),
268 403 => RemoteError::forbidden(message),
269 404 => RemoteError::not_found(message),
270 409 => RemoteError::conflict(message),
271 _ => RemoteError::server_error(status, message),
272 }
273 }
274
275 // -----------------------------------------------------------------------
276 // Workspace operations

Callers 1

parse_error_bodyMethod · 0.80

Calls 1

conflictFunction · 0.85

Tested by

no test coverage detected