### Is there an existing issue for this?

- [X] I have searched the existing issues and read the documentation

### Question

After configuring it  withEnv("DYNAMODB_WRITE_ERROR_PROBABILITY", "1.0") — it is expected to throw dynamo throuput exception , but throwing 500 error - `(Service: DynamoDb, Status Code: 500, Request ID: null, Extended Request ID: null)","operationType":"PutItem","kinesisRecordMetaData":{"recordInsertionDate":"01-01-2021"}}, Response - PutObjectResponse(ETag="5435b0664a1337227d380fbd83ebcc89")

### Anything else?

_No response_
table = self.get_dynamodb_table()
        
        test_no_errors = table.put_item(Item={PARTITION_KEY: short_uid(), "data": "foobar123"})
        self.assertEqual(200, test_no_errors["ResponseMetadata"]["HTTPStatusCode"])
        
        config.DYNAMODB_WRITE_ERROR_PROBABILITY = 1.0
        with self.assertRaises(ClientError):
            table.put_item(Item={PARTITION_KEY: short_uid(), "data": "foobar123"})
        
        with self.assertRaises(ClientError):
            table.batch_write_item(
                RequestItems={
                    table: [
                        {
                            "PutRequest": {
                                "Item": {
                                    PARTITION_KEY: short_uid(),
                                    "data": "foobar123",
                                }
                            }
                        }
                    ]
                }
            )
        
        config.DYNAMODB_WRITE_ERROR_PROBABILITY = 0.0