### 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_
import unittest
import pytest
from botocore.exceptions import ClientError
from localstack import config
from localstack.utils.aws import aws_stack
from localstack.utils.common import short_uid
from .awslambda.functions import lambda_integration
from .test_integration import PARTITION_KEY, TEST_TABLE_NAME
TEST_STREAM_NAME = lambda_integration.KINESIS_STREAM_NAME
def should_run():
    return config.is_env_true("TEST_ERROR_INJECTION")
class TestErrorInjection(unittest.TestCase):
    @classmethod
    def setUpClass(cls) -> None:
        if not should_run():
            pytest.skip("skipping TestErrorInjection (TEST_ERROR_INJECTION not set or false)")
    def test_kinesis_error_injection(self):
        kinesis = aws_stack.create_external_boto_client("kinesis")
        aws_stack.create_kinesis_stream(TEST_STREAM_NAME)
        records = [{"Data": "0", "ExplicitHashKey": "0", "PartitionKey": "0"}]
        
        test_no_errors = kinesis.put_records(StreamName=TEST_STREAM_NAME, Records=records)
        assert test_no_errors["FailedRecordCount"] == 0
        
        config.KINESIS_ERROR_PROBABILITY = 1.0
        test_all_errors = kinesis.put_records(StreamName=TEST_STREAM_NAME, Records=records)
        assert test_all_errors["FailedRecordCount"] == 1
        
        config.KINESIS_ERROR_PROBABILITY = 0.0
    def get_dynamodb_table(self):