mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-25 21:31:01 +00:00
18 lines
498 B
Rust
18 lines
498 B
Rust
|
#[derive(Debug, thiserror::Error)]
|
||
|
pub enum Error {
|
||
|
#[error("HTTP Digest generation error")]
|
||
|
Digest,
|
||
|
#[error("JSON encoding error")]
|
||
|
Json(#[from] serde_json::Error),
|
||
|
#[error("Signature error")]
|
||
|
Signature(#[from] sigh::Error),
|
||
|
#[error("HTTP request error")]
|
||
|
HttpReq(#[from] http::Error),
|
||
|
#[error("HTTP client error")]
|
||
|
Http(#[from] reqwest::Error),
|
||
|
#[error("Invalid URI")]
|
||
|
InvalidUri,
|
||
|
#[error("Error response from remote")]
|
||
|
Response(String),
|
||
|
}
|