Fix InvalidObjectState HTTP code (#5217)

This commit is contained in:
Gabriel Roldán 2022-06-12 07:16:11 -03:00 committed by GitHub
parent e15c16eaed
commit 7c00654647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,7 +524,7 @@ class InvalidContinuationToken(S3ClientError):
class InvalidObjectState(BucketError):
code = 400
code = 403
def __init__(self, storage_class, **kwargs):
kwargs.setdefault("template", "storage_error")