#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("HTTP request failed: {0}")]
Http(#[from] reqwest::Error),
#[error("JSON parsing failed: {0}")]
Json(#[from] serde_json::Error),
#[error("Authentication failed: {0}")]
Auth(String),
#[error("API error ({status}): {message}")]
Api {
status: u16,
message: String,
},
#[error("Stream ended: {0}")]
StreamEnded(String),
}