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

Method http

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

Create an HTTP error.

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

Source from the content-addressed store, hash-verified

255
256 /// Create an HTTP error.
257 pub fn http(status: u16, message: impl Into<String>) -> Self {
258 Self::HttpError {
259 status,
260 message: message.into(),
261 }
262 }
263
264 /// Create a timeout error.
265 pub fn timeout(seconds: u64) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected