From d60766103d24c9c8a5ce7ad21064847f2f8ab215 Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Mon, 5 Feb 2018 15:20:10 +0530 Subject: [PATCH] rgw: Reinstating error codes mapping for Roles. Signed-off-by: Pritha Srivastava --- src/rgw/rgw_common.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index f724e3f34db..955e9bac499 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -72,6 +72,7 @@ rgw_http_errors rgw_http_s3_errors({ { ERR_TOO_MANY_BUCKETS, {400, "TooManyBuckets" }}, { ERR_MALFORMED_XML, {400, "MalformedXML" }}, { ERR_AMZ_CONTENT_SHA256_MISMATCH, {400, "XAmzContentSHA256Mismatch" }}, + { ERR_MALFORMED_DOC, {400, "MalformedPolicyDocument"}}, { ERR_INVALID_TAG, {400, "InvalidTag"}}, { ERR_MALFORMED_ACL_ERROR, {400, "MalformedACLError" }}, { ERR_INVALID_ENCRYPTION_ALGORITHM, {400, "InvalidEncryptionAlgorithmError" }}, @@ -91,6 +92,7 @@ rgw_http_errors rgw_http_s3_errors({ { ERR_NO_SUCH_LC, {404, "NoSuchLifecycleConfiguration"}}, { ERR_NO_SUCH_BUCKET_POLICY, {404, "NoSuchBucketPolicy"}}, { ERR_NO_SUCH_USER, {404, "NoSuchUser"}}, + { ERR_NO_ROLE_FOUND, {404, "NoSuchEntity"}}, { ERR_NO_SUCH_SUBUSER, {404, "NoSuchSubUser"}}, { ERR_METHOD_NOT_ALLOWED, {405, "MethodNotAllowed" }}, { ETIMEDOUT, {408, "RequestTimeout" }}, @@ -99,6 +101,8 @@ rgw_http_errors rgw_http_s3_errors({ { ERR_EMAIL_EXIST, {409, "EmailExists" }}, { ERR_KEY_EXIST, {409, "KeyExists"}}, { ERR_TAG_CONFLICT, {409, "OperationAborted"}}, + { ERR_ROLE_EXISTS, {409, "EntityAlreadyExists"}}, + { ERR_DELETE_CONFLICT, {409, "DeleteConflict"}}, { ERR_INVALID_SECRET_KEY, {400, "InvalidSecretKey"}}, { ERR_INVALID_KEY_TYPE, {400, "InvalidKeyType"}}, { ERR_INVALID_CAP, {400, "InvalidCapability"}},