aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-08 13:13:59 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-08 13:13:59 +0200
commit56be838f546b8ec8de0c90f79adfffc6b341e746 (patch)
tree64370bb84fe883f1cec23720e5c0ee93f5fbc058 /src/error.rs
parentc876bb001f999e288410201b2306e8c3f3261836 (diff)
downloadgnix-56be838f546b8ec8de0c90f79adfffc6b341e746.tar
gnix-56be838f546b8ec8de0c90f79adfffc6b341e746.tar.bz2
gnix-56be838f546b8ec8de0c90f79adfffc6b341e746.tar.zst
update deps
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 4237a5e..3d5d1aa 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -14,7 +14,7 @@ pub enum ServiceError {
#[error("hyper error: {0}")]
Hyper(hyper::Error),
#[error("h3 error: {0}")]
- H3(h3::Error),
+ H3Stream(h3::error::StreamError),
#[error("host header missing")]
NoHost,
#[error("unknown host")]
@@ -71,7 +71,7 @@ impl ServiceError {
ServiceError::RequestTaken => StatusCode::INTERNAL_SERVER_ERROR,
ServiceError::Limit(_) => StatusCode::TOO_MANY_REQUESTS,
ServiceError::Hyper(_) => StatusCode::INTERNAL_SERVER_ERROR,
- ServiceError::H3(_) => StatusCode::INTERNAL_SERVER_ERROR,
+ ServiceError::H3Stream(_) => StatusCode::INTERNAL_SERVER_ERROR,
ServiceError::NoHost => StatusCode::BAD_REQUEST,
ServiceError::UnknownHost => StatusCode::NOT_FOUND,
ServiceError::UnknownPath => StatusCode::NOT_FOUND,