Skip to main content

huginn_net_http/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum HuginnNetHttpError {
5    #[error("Parse error: {0}")]
6    Parse(String),
7
8    #[error("Unsupported protocol: {0}")]
9    UnsupportedProtocol(String),
10
11    #[error("Unacceptable configuration: {0}")]
12    Misconfiguration(String),
13
14    #[error("No SETTINGS frame found in captured frames")]
15    NoSettingsFrame,
16
17    #[error("Malformed pseudo-headers in HEADERS frame: {0}")]
18    MalformedPseudoHeaders(String),
19}