#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("mountos: {message} (status={status}, code={error_code})")]
Api {
message: String,
status: u16,
error_code: i64,
},
#[error("mountos: http transport error: {0}")]
Http(#[from] reqwest::Error),
#[error("mountos: serialization error: {0}")]
Serde(#[from] serde_json::Error),
#[error("mountos: invalid private key: {0}")]
Key(String),
}