#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("invalid request: {0}")]
InvalidRequest(String),
#[error("resource limit exceeded: {0}")]
LimitExceeded(&'static str),
#[error("unknown Web API operation")]
UnknownOperation,
#[error("the operation needs an active invocation")]
NoInvocation,
#[error("unavailable: {0}")]
Unavailable(&'static str),
}
pub type Result<T, E = Error> = std::result::Result<T, E>;