use thiserror::Error;
#[derive(Debug, Error)]
pub enum AeoError {
#[error("AEO document parse error: {0}")]
Parse(#[from] serde_json::Error),
#[cfg(feature = "client")]
#[error("HTTP error: {0}")]
Http(#[from] Box<ureq::Error>),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("AEO fetch failed: HTTP {status} from {url}")]
HttpStatus {
status: u16,
url: String,
},
}