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

Method status_error

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

Source from the content-addressed store, hash-verified

295 }
296
297 fn status_error(&self, status: u16, message: String) -> RemoteError {
298 match status {
299 401 => RemoteError::unauthorized(message),
300 403 => RemoteError::forbidden(message),
301 404 => RemoteError::not_found(message),
302 409 => RemoteError::conflict(message),
303 _ => RemoteError::server_error(status, message),
304 }
305 }
306
307 // -----------------------------------------------------------------------
308 // Workspace operations

Callers 1

parse_error_bodyMethod · 0.80

Calls 1

conflictFunction · 0.85

Tested by

no test coverage detected