S3 Signature Error Handler (signature/error.rs)

fractalbits · crates/s3_gateway/src/handler/common/signature/error.rs · rust · Apache-2.0
database, files, infra, tag:signature, tag:error, tag:validation

Handles errors related to S3 request signing and validation

// Source: https://github.com/fractalbits-labs/fractalbits | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use actix_web::http::header::ToStrError;
use rpc_client_rss::RpcErrorRss;
use thiserror::Error;

/// Errors of this crate
#[derive(Debug, Error)]
pub enum SignatureError {
    /// Authorization Header Malformed
    #[error("Authorization header malformed, unexpected scope: {0}")]
    AuthorizationHeaderMalformed(String),

    /// The request contained an invalid UTF-8 sequence in its path or in other parameters
    #[error("Invalid UTF-8: {0}")]
    InvalidUtf8Str(#[from] std::str::Utf8Error),

    /// The provided digest (checksum) value was invalid
    #[error("Invalid dige

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key