Skip to content

Commit 7a06e84

Browse files
committed
rgw/s3: map ENOSPC to 507 InsufficientCapacity
Signed-off-by: Casey Bodley <[email protected]>
1 parent 9d351a7 commit 7a06e84

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/rgw/rgw_common.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ rgw_http_errors rgw_http_s3_errors({
140140
{ ERR_NO_SUCH_PUBLIC_ACCESS_BLOCK_CONFIGURATION, {404, "NoSuchPublicAccessBlockConfiguration"}},
141141
{ ERR_ACCOUNT_EXISTS, {409, "AccountAlreadyExists"}},
142142
{ ECANCELED, {409, "ConcurrentModification"}},
143+
{ EDQUOT, {507, "InsufficientCapacity"}},
144+
{ ENOSPC, {507, "InsufficientCapacity"}},
143145
});
144146

145147
rgw_http_errors rgw_http_swift_errors({

src/rgw/rgw_rest.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const static struct rgw_http_status_code http_codes[] = {
8383
{ 500, "Internal Server Error" },
8484
{ 501, "Not Implemented" },
8585
{ 503, "Slow Down"},
86+
{ 507, "Insufficient Storage"},
8687
{ 0, NULL },
8788
};
8889

0 commit comments

Comments
 (0)