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

Method server_error

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

Create a server error with an arbitrary status code.

(status: u16, message: impl Into<String>)

Source from the content-addressed store, hash-verified

327
328 /// Create a server error with an arbitrary status code.
329 pub fn server_error(status: u16, message: impl Into<String>) -> Self {
330 Self::HttpError {
331 status,
332 message: message.into(),
333 }
334 }
335
336 /// Check if this is a retryable error.
337 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected