#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("err: {0}")]
Other(&'static str),
#[error("Fetch req: {0}")]
FetchReq(String),
#[error("Unauthorized 401")]
HttpUnauthorized(),
#[error("Forbidden 403")]
HttpForbidden(),
#[error("Not Found 404")]
HttpNotFound(),
#[error("Conflict 409")]
HttpConflict(),
#[error("Status code {0}")]
HttpOther(u16),
}
pub type Result<T> = std::result::Result<T, Error>;