]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Fri, 28 Mar 2025 17:40:52 +0000 (13:40 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 7a06e84146871db1f885a7b5993aa1e06c3693a0)

src/rgw/rgw_common.cc
src/rgw/rgw_rest.cc

index b639f810d8d9961052e682c8afe7e2936f5819d8..447076a01ffdbad3a4379e807ef011b14726ea6d 100644 (file)
@@ -138,6 +138,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 1588ccce96d2633a38778bb089fadcd93c29fa0f..80e8a65a77a1bd4767ec7229aee7d5fa85ed2c82 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 },
 };