use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Error, Debug)]
pub enum Error {
#[error("Authentication failed: {0}")]
Authentication(String),
#[error("API error: {0}")]
Api(String),
#[error("Zone not found: {0}")]
ZoneNotFound(String),
#[error("Location not found: {0}")]
LocationNotFound(String),
#[error("Session expired")]
SessionExpired,
#[error("HTTP request failed: {0}")]
Http(#[from] reqwest::Error),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
#[error("Invalid response: {0}")]
InvalidResponse(String),
}