### 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_
dynamodb = aws_stack.connect_to_resource("dynamodb")
        
        aws_stack.create_dynamodb_table(TEST_TABLE_NAME, partition_key=PARTITION_KEY)
        return dynamodb.Table(TEST_TABLE_NAME)
    def assert_zero_probability_read_error_injection(self, table, partition_key):
        
        test_no_errors = table.get_item(Key={PARTITION_KEY: partition_key})
        assert test_no_errors["ResponseMetadata"]["HTTPStatusCode"] == 200
    def test_dynamodb_error_injection(self):
        table = self.get_dynamodb_table()
        partition_key = short_uid()
        self.assert_zero_probability_read_error_injection(table, partition_key)
        
        config.DYNAMODB_ERROR_PROBABILITY = 1.0
        with self.assertRaises(ClientError):
            table.get_item(Key={PARTITION_KEY: partition_key})
        
        config.DYNAMODB_ERROR_PROBABILITY = 0.0
    def test_dynamodb_read_error_injection(self):
        table = self.get_dynamodb_table()
        partition_key = short_uid()
        self.assert_zero_probability_read_error_injection(table, partition_key)
        
        config.DYNAMODB_READ_ERROR_PROBABILITY = 1.0
        with self.assertRaises(ClientError):
            table.get_item(Key={PARTITION_KEY: partition_key})
        
        config.DYNAMODB_READ_ERROR_PROBABILITY = 0.0
    def test_dynamodb_write_error_injection(self):