error.rs from nasa/hermes
// Source: https://github.com/nasa/hermes | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use thiserror::Error;
/// Error types for YAMCS HTTP client operations
#[derive(Debug, Error)]
pub enum YamcsError {
/// HTTP request failed
#[error("HTTP request failed: {0:?}")]
Http(#[from] reqwest::Error),
/// HTTP error response from server
#[error("HTTP error {status}: {message}")]
HttpStatus {
status: u16,
message: String,
detail: Option<serde_json::Value>,
},
/// Authentication failed
#[error("Authentication failed: {0}")]
Auth(String),
/// WebSocket error
#[error("WebSocket error: {0}")]
WebSocket(String)
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key