summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_common.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2024-03-13 00:05:13 +0100
committerCasey Bodley <cbodley@redhat.com>2024-04-10 19:09:17 +0200
commitb5d5c55b5440fef27a63f43ea1e431ff2a4393d7 (patch)
tree623cd08cddbb0f57b3feff76dd785b0427bd61c3 /src/rgw/rgw_common.h
parentrgw/pubsub: return 404 NotFound instead of NoSuchKey (diff)
downloadceph-b5d5c55b5440fef27a63f43ea1e431ff2a4393d7.tar.xz
ceph-b5d5c55b5440fef27a63f43ea1e431ff2a4393d7.zip
rgw/pubsub: add ERR_AUTHORIZATION -> AuthorizationError
sns docs specify AuthorizationError as the 403 error code rather than s3's AccessDenied: https://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html#API_CreateTopic_Errors boto3 sns clients can catch this as AuthorizationErrorException Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_common.h')
-rw-r--r--src/rgw/rgw_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index 56f51d08d74..5e44eeed89b 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -325,6 +325,7 @@ inline constexpr const char* RGW_REST_STS_XMLNS =
#define ERR_INVALID_OBJECT_STATE 2222
#define ERR_PRESIGNED_URL_EXPIRED 2223
#define ERR_PRESIGNED_URL_DISABLED 2224
+#define ERR_AUTHORIZATION 2225 // SNS 403 AuthorizationError
#define ERR_BUSY_RESHARDING 2300
#define ERR_NO_SUCH_ENTITY 2301