From 7c0065464772bbc44d44e4527d940634a7dd20fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Rold=C3=A1n?= Date: Sun, 12 Jun 2022 07:16:11 -0300 Subject: [PATCH] Fix InvalidObjectState HTTP code (#5217) --- moto/s3/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/s3/exceptions.py b/moto/s3/exceptions.py index a03e9cc14..74da32cd0 100644 --- a/moto/s3/exceptions.py +++ b/moto/s3/exceptions.py @@ -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")