From b829ec4a6bd4376ad9f5c33255a4823c7a46c84c Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Thu, 11 May 2017 17:33:01 -0700 Subject: [PATCH] Fixes https://github.com/minio/minio/issues/4320 (#4332) - Add description for error ErrBucketAlreadyExists --- cmd/api-errors.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/api-errors.go b/cmd/api-errors.go index f0ffb28d6..ce6a0a9e7 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -356,6 +356,11 @@ var errorCodeResponse = map[APIErrorCode]APIError{ Description: "The bucket you tried to delete is not empty", HTTPStatusCode: http.StatusConflict, }, + ErrBucketAlreadyExists: { + Code: "BucketAlreadyExists", + Description: "The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.", + HTTPStatusCode: http.StatusConflict, + }, ErrAllAccessDisabled: { Code: "AllAccessDisabled", Description: "All access to this bucket has been disabled.",