]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/s3: map ENOSPC to 507 InsufficientCapacity
authorCasey Bodley <cbodley@redhat.com>
Tue, 4 Mar 2025 19:55:39 +0000 (14:55 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 13 Mar 2025 14:49:57 +0000 (10:49 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_common.cc
src/rgw/rgw_rest.cc

index 5ecb2a1e17d8326deda8c5601d5b01f36e4b1358..6ec60ff464aeb025078594e667dbb5a49b2e6bb8 100644 (file)
@@ -140,6 +140,8 @@ rgw_http_errors rgw_http_s3_errors({
     { ERR_NO_SUCH_PUBLIC_ACCESS_BLOCK_CONFIGURATION, {404, "NoSuchPublicAccessBlockConfiguration"}},
     { ERR_ACCOUNT_EXISTS, {409, "AccountAlreadyExists"}},
     { ECANCELED, {409, "ConcurrentModification"}},
+    { EDQUOT, {507, "InsufficientCapacity"}},
+    { ENOSPC, {507, "InsufficientCapacity"}},
 });
 
 rgw_http_errors rgw_http_swift_errors({
index be6047b5dd5638fab041dd646f04ebd3d91809be..0592d66e3c1504ca48a81ddceae420726172c8cd 100644 (file)
@@ -83,6 +83,7 @@ const static struct rgw_http_status_code http_codes[] = {
   { 500, "Internal Server Error" },
   { 501, "Not Implemented" },
   { 503, "Slow Down"},
+  { 507, "Insufficient Storage"},
   { 0, NULL },
 };