File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,11 @@ S3Error.InvalidBucketState = Object.freeze({
164
164
message : 'The request is not valid with the current state of the bucket.' ,
165
165
http_code : 409 ,
166
166
} ) ;
167
+ S3Error . ObjectQuotaExceeded = Object . freeze ( {
168
+ code : 'ObjectQuotaExceeded' ,
169
+ message : 'Object quota exceeded for the bucket.' ,
170
+ http_code : 409 ,
171
+ } ) ;
167
172
S3Error . InvalidDigest = Object . freeze ( {
168
173
code : 'InvalidDigest' ,
169
174
message : 'The Content-MD5 you specified is not valid.' ,
@@ -613,6 +618,7 @@ S3Error.RPC_ERRORS_TO_S3 = Object.freeze({
613
618
INVALID_PORT_ORDER : S3Error . InvalidPartOrder ,
614
619
INVALID_BUCKET_STATE : S3Error . InvalidBucketState ,
615
620
NOT_ENOUGH_SPACE : S3Error . InvalidBucketState ,
621
+ OBJECT_QUOTA_EXCEEDED : S3Error . ObjectQuotaExceeded ,
616
622
MALFORMED_POLICY : S3Error . MalformedPolicy ,
617
623
NO_SUCH_OBJECT_LOCK_CONFIGURATION : S3Error . NoSuchObjectLockConfiguration ,
618
624
OBJECT_LOCK_CONFIGURATION_NOT_FOUND_ERROR : S3Error . ObjectLockConfigurationNotFoundError ,
Original file line number Diff line number Diff line change @@ -1700,7 +1700,7 @@ function check_quota(bucket) {
1700
1700
if ( major_messages . length > 0 ) {
1701
1701
const message = major_messages . join ( ) ;
1702
1702
dbg . error ( message ) ;
1703
- throw new RpcError ( 'INVALID_BUCKET_STATE ' , message ) ;
1703
+ throw new RpcError ( 'OBJECT_QUOTA_EXCEEDED ' , message ) ;
1704
1704
}
1705
1705
}
1706
1706
You can’t perform that action at this time.
0 commit comments