use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("http error: {0}")]
HTTPError(#[from] http::Error),
#[error("UTF-8 encoding error")]
Utf8,
#[error("UTF-8 encoding error")]
#[cfg(feature = "tokio-ws")]
TungsteniteError(#[from] async_tungstenite::tungstenite::Error),
}