summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 15e4308..1e6eac1 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -27,8 +27,17 @@ pub enum Error {
27 #[error("parse header: {source}")] 27 #[error("parse header: {source}")]
28 InvalidHeaderValue { 28 InvalidHeaderValue {
29 #[from] 29 #[from]
30 source: InvalidHeaderValue 30 source: InvalidHeaderValue,
31 }, 31 },
32 #[error("ws")] 32 #[error("tungstenite: {source}")]
33 Tungstenite {
34 #[from]
35 source: tokio_tungstenite::tungstenite::Error,
36 },
37 #[error("faulty websocket response")]
33 WsResponse, 38 WsResponse,
39 #[error("authorization failed")]
40 Authorization,
41 #[error("Http error status: {0}")]
42 HttpStatus(u16),
34} 43}