deribit_http/error/
mod.rs1#[derive(Debug, thiserror::Error)]
5pub enum HttpError {
6 #[error("Configuration error: {0}")]
8 ConfigError(String),
9
10 #[error("Request failed: {0}")]
12 RequestFailed(String),
13
14 #[error("Authentication failed: {0}")]
16 AuthenticationFailed(String),
17
18 #[error("Rate limit exceeded")]
20 RateLimitExceeded,
21
22 #[error("Invalid response format: {0}")]
24 InvalidResponse(String),
25
26 #[error("Network error: {0}")]
28 NetworkError(String),
29
30 #[error("Parse error: {0}")]
32 ParseError(String),
33}