summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 636f226..c7290af 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -26,6 +26,8 @@ pub enum ServiceError {
BadUtf8(#[from] std::str::Utf8Error),
#[error("bad utf8")]
BadUtf82(#[from] std::string::FromUtf8Error),
+ #[error("bad utf8")]
+ BadUtf83(#[from] http::header::ToStrError),
#[error("bad path")]
BadPath,
#[error("bad auth")]
@@ -36,6 +38,8 @@ pub enum ServiceError {
UpgradeFailed,
#[error("{0}")]
Custom(String),
+ #[error("{0}")]
+ CustomStatic(&'static str),
#[error("parse int error: {0}")]
ParseIntError(#[from] std::num::ParseIntError),
#[error("invalid header")]