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

Method status_error

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

Source from the content-addressed store, hash-verified

236 }
237
238 fn status_error(&self, status: u16, message: String) -> RemoteError {
239 match status {
240 401 => RemoteError::unauthorized(message),
241 403 => RemoteError::forbidden(message),
242 404 => RemoteError::not_found(message),
243 409 => RemoteError::conflict(message),
244 _ => RemoteError::server_error(status, message),
245 }
246 }
247
248 // -----------------------------------------------------------------------
249 // Workspace operations

Callers 1

parse_error_bodyMethod · 0.80

Calls 1

conflictFunction · 0.85

Tested by

no test coverage detected