Enum garage_api::s3::error::Error
source · pub enum Error {
Show 15 variants
Common(CommonError),
AuthorizationHeaderMalformed(String),
NoSuchKey,
NoSuchUpload,
PreconditionFailed,
InvalidPart,
InvalidPartOrder,
EntityTooSmall,
InvalidUtf8Str(Utf8Error),
InvalidUtf8String(FromUtf8Error),
InvalidXml(String),
InvalidRange((HttpRangeParseError, u64)),
InvalidEncryptionAlgorithm(String),
InvalidDigest(String),
NotImplemented(String),
}
Expand description
Errors of this crate
Variants§
Common(CommonError)
Error from common error
AuthorizationHeaderMalformed(String)
Authorization Header Malformed
NoSuchKey
The object requested don’t exists
NoSuchUpload
The multipart upload requested don’t exists
PreconditionFailed
Precondition failed (e.g. x-amz-copy-source-if-match)
InvalidPart
Parts specified in CMU request do not match parts actually uploaded
InvalidPartOrder
Parts given to CompleteMultipartUpload were not in ascending order
EntityTooSmall
In CompleteMultipartUpload: not enough data (here we are more lenient than AWS S3)
InvalidUtf8Str(Utf8Error)
The request contained an invalid UTF-8 sequence in its path or in other parameters
InvalidUtf8String(FromUtf8Error)
The request used an invalid path
InvalidXml(String)
The client sent invalid XML data
InvalidRange((HttpRangeParseError, u64))
The client sent a range header with invalid value
InvalidEncryptionAlgorithm(String)
The client sent a range header with invalid value
InvalidDigest(String)
The client sent invalid XML data
NotImplemented(String)
The client sent a request for an action not supported by garage
Implementations§
Trait Implementations§
source§impl ApiError for Error
impl ApiError for Error
source§fn http_status_code(&self) -> StatusCode
fn http_status_code(&self) -> StatusCode
Get the HTTP status code that best represents the meaning of the error for the client