From 8dcab0f29e26dea6f477b59006f691d4465f3061 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 30 Oct 2024 04:37:05 +0200 Subject: [PATCH] add new enums --- src/client/response/header.rs | 1 + src/client/response/header/error.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client/response/header.rs b/src/client/response/header.rs index 1b73346..a415d80 100644 --- a/src/client/response/header.rs +++ b/src/client/response/header.rs @@ -66,6 +66,7 @@ impl Header { match reason { status::Error::Decode => Error::StatusDecode, status::Error::Undefined => Error::StatusUndefined, + status::Error::Protocol => Error::StatusProtocol, }, None, )), diff --git a/src/client/response/header/error.rs b/src/client/response/header/error.rs index e8176bd..17ff132 100644 --- a/src/client/response/header/error.rs +++ b/src/client/response/header/error.rs @@ -4,5 +4,6 @@ pub enum Error { InputStream, Protocol, StatusDecode, + StatusProtocol, StatusUndefined, }