1#[derive(thiserror::Error, Debug)]
5pub enum Error {
6 #[error(transparent)]
8 Reqwest(#[from] reqwest::Error),
9
10 #[error(transparent)]
12 InvalidHeader(#[from] reqwest::header::InvalidHeaderValue),
13
14 #[error(transparent)]
16 ParseError(#[from] url::ParseError),
17
18 #[error("authentication error: {0}")]
20 Authentication(String),
21
22 #[error("bad request: {0}")]
24 BadRequest(String),
25
26 #[error("not found: {0}")]
28 NotFound(String),
29
30 #[error("internal server error: {0}")]
32 InternalServerError(String),
33}