diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-13 15:21:32 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-13 15:21:32 +0200 |
commit | 7a5d329e49cc7018cbfa14d37589f51860f66cf0 (patch) | |
tree | 50be9a5eea1b2415bb541aff0c8cb33c0f47b8e4 /src/api/admin/error.rs | |
parent | f82b938033f1a01a136315b5f37ecb89b78bca0c (diff) | |
download | garage-7a5d329e49cc7018cbfa14d37589f51860f66cf0.tar.gz garage-7a5d329e49cc7018cbfa14d37589f51860f66cf0.zip |
More error refactoring
Diffstat (limited to 'src/api/admin/error.rs')
-rw-r--r-- | src/api/admin/error.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/api/admin/error.rs b/src/api/admin/error.rs index 1f49fed5..1d68dc69 100644 --- a/src/api/admin/error.rs +++ b/src/api/admin/error.rs @@ -40,10 +40,6 @@ pub enum Error { /// Bucket name is not valid according to AWS S3 specs #[error(display = "Invalid bucket name")] InvalidBucketName, - - /// The client sent a request for an action not supported by garage - #[error(display = "Unimplemented action: {}", _0)] - NotImplemented(String), } impl<T> From<T> for Error @@ -75,7 +71,6 @@ impl ApiError for Error { Error::NoSuchAccessKey | Error::NoSuchBucket => StatusCode::NOT_FOUND, Error::BucketNotEmpty | Error::BucketAlreadyExists => StatusCode::CONFLICT, Error::Forbidden(_) => StatusCode::FORBIDDEN, - Error::NotImplemented(_) => StatusCode::NOT_IMPLEMENTED, Error::InvalidBucketName => StatusCode::BAD_REQUEST, } } |