use reqwest::StatusCode;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum HermesError {
#[error("HTTP request failed: {0}")]
ReqwestError(#[from] reqwest::Error),
#[error("Unexpected response status: {status}, body: {body}")]
ResponseError {
status: StatusCode,
body: String,
},
#[error("Invalid input: {0}")]
InvalidInput(String),
#[error("Other error: {0}")]
Other(String),
}