mirror of
https://github.com/astro/buzzrelay.git
synced 2025-05-20 17:18:55 +00:00
19 lines
564 B
Rust
19 lines
564 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("Signature verification failure")]
|
|
SignatureFail,
|
|
#[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),
|
|
}
|