http_type/response/
enum.rs

1use crate::*;
2
3/// Represents various errors that can occur during HTTP response processing.
4#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)]
5pub enum ResponseError {
6    /// Represents an unknown error with a message.
7    #[default]
8    Unknown,
9    /// Represents an error where the stream was not found.
10    NotFoundStream,
11    /// Represents an error where the connection was closed.
12    ConnectionClosed,
13    /// Represents a terminated operation or connection.
14    Terminated,
15    /// Represents an error with a message string.
16    Response(String),
17}