usethiserror::Error;usewarp::reject::Reject;/// Lib errors wrapper
/// Encapsulates the different errors that can occur during forwarding requests
#[derive(Error, Debug)]pubenumError{/// Errors produced by reading or building requests
#[error("Request error: {0}")]
Request(#[from]reqwest::Error),/// Errors when connecting to the target service
#[error("Http error: {0}")]
Http(#[from]warp::http::Error),}implReject forError{}