#[derive(Debug, thiserror::Error)]
pub enum H33Error {
#[error("HTTP error: {0}")]
Http(#[from] reqwest::Error),
#[error("API error ({status}): {message}")]
Api {
status: u16,
error_code: String,
message: String,
hint: Option<String>,
},
#[error("Not connected: call client.connect() first")]
NotConnected,
#[error("FHE not initialized: call client.fhe_init() first")]
FheNotInitialized,
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
}
pub type Result<T> = std::result::Result<T, H33Error>;