diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-12 20:49:47 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-12 20:49:47 +0200 |
commit | ef8172874f650078e8cfb6e1582de4ece5495640 (patch) | |
tree | 35ced9080db86739904e903a68999fd1606bc9b1 /src/error.rs | |
parent | b28c5418b0635bf2fc3b0d18922df4ebb7cccd57 (diff) | |
download | gnix-ef8172874f650078e8cfb6e1582de4ece5495640.tar gnix-ef8172874f650078e8cfb6e1582de4ece5495640.tar.bz2 gnix-ef8172874f650078e8cfb6e1582de4ece5495640.tar.zst |
add any/all conditions and experimental CGI support
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index e7e5af2..14b2842 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,14 +1,11 @@ -use tokio::sync::TryAcquireError; - #[derive(Debug, thiserror::Error)] pub enum ServiceError { #[error("no response generated; the proxy is misconfigured")] NoResponse, #[error("request taken; the proxy is misconfigured")] RequestTaken, - #[error("limit reached. try again")] - Limit(#[from] TryAcquireError), + Limit(#[from] tokio::sync::TryAcquireError), #[error("hyper error")] Hyper(hyper::Error), #[error("no host")] @@ -37,6 +34,10 @@ pub enum ServiceError { UpgradeFailed, #[error("{0}")] Custom(String), + #[error("parse int error: {0}")] + ParseIntError(#[from] std::num::ParseIntError), + #[error("invalid header")] + InvalidHeader, #[error("impossible error")] Other, } |