bunny-api-tokio 0.4.0

Provides access to the Bunny CDN API asynchronously using tokio.
Documentation
//! Error types for this crate.

/// Error type for this crate
#[derive(thiserror::Error, Debug)]
pub enum Error {
    /// Reqwest error
    #[error(transparent)]
    Reqwest(#[from] reqwest::Error),

    /// Header contains non-ASCII characters
    #[error(transparent)]
    InvalidHeader(#[from] reqwest::header::InvalidHeaderValue),

    /// URL Parse error
    #[error(transparent)]
    ParseError(#[from] url::ParseError),

    /// Authentication error
    #[error("authentication error: {0}")]
    Authentication(String),

    /// Bad request error
    #[error("bad request: {0}")]
    BadRequest(String),

    /// Not found error
    #[error("not found: {0}")]
    NotFound(String),

    /// Internal server error
    #[error("internal server error: {0}")]
    InternalServerError(String),
}