From: Casey Bodley Date: Tue, 4 Mar 2025 19:55:39 +0000 (-0500) Subject: rgw/s3: map ENOSPC to 507 InsufficientCapacity X-Git-Tag: v19.2.3~182^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14f593bcd775a2e22093c4a7cc214ed546935705;p=ceph.git rgw/s3: map ENOSPC to 507 InsufficientCapacity Signed-off-by: Casey Bodley (cherry picked from commit 7a06e84146871db1f885a7b5993aa1e06c3693a0) --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index b639f810d8d..447076a01ff 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -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({ diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 1588ccce96d..80e8a65a77a 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -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 }, };