pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("The requested data {0} was not found.")]
NotFound(String),
#[error("{0}")]
Reqwest(#[from] reqwest::Error),
#[error("Response error with status code {code}: {text}, URL: {url}")]
ResponseError {
code: u16,
text: String,
url: String,
},
#[error("No node available for remote Pow")]
UnavailablePow,
#[error("Call to {0} is not supported on this node")]
NotSupported(String),
}