# Type of request: This is a ...
[ ] bug report
[x] feature request

# Detailed description
As a Developer,
I want to be able to simulate BadDigest and InvalidDigest errors,
So that I can test the error handling logic

## Expected behavior
https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
BadDigest: The Content-MD5 you specified did not match what we received.
InvalidDigest: The Content-MD5 you specified is not valid.

## Actual behavior
localstack returns InvalidDigest when MD5 does not match payload.


def test_get_java_lib_folder_classpath_archive_is_None(self):
        self.assertRaises(TypeError, lambda_executors.Util.get_java_classpath, None)
    @mock.patch('localstack.services.awslambda.lambda_executors.store_cloudwatch_logs')
    def test_executor_store_logs_can_handle_milliseconds(self, mock_store_cloudwatch_logs):
        mock_details = mock.Mock()
        t_sec = time.time()  
        t_ms = time.time() * 1000  
        
        lambda_executors._store_logs(mock_details, 'mock log output', t_ms)
        
        today = datetime.datetime.utcfromtimestamp(t_sec).strftime('%Y/%m/%d')
        log_stream_name = mock_store_cloudwatch_logs.call_args_list[0].args[1]
        parts = log_stream_name.split('/')
        date_part = '/'.join(parts[:3])
        self.assertEqual(date_part, today)
    def _create_function(self, function_name, tags={}):
        arn = lambda_api.func_arn(function_name)
        lambda_api.ARN_TO_LAMBDA[arn] = LambdaFunction(arn)
        lambda_api.ARN_TO_LAMBDA[arn].versions = {
            '$LATEST': {'CodeSize': self.CODE_SIZE, 'CodeSha256': self.CODE_SHA_256, 'RevisionId': self.REVISION_ID}
        }
        lambda_api.ARN_TO_LAMBDA[arn].handler = self.HANDLER
        lambda_api.ARN_TO_LAMBDA[arn].runtime = self.RUNTIME
        lambda_api.ARN_TO_LAMBDA[arn].timeout = self.TIMEOUT
        lambda_api.ARN_TO_LAMBDA[arn].tags = tags
        lambda_api.ARN_TO_LAMBDA[arn].envvars = {}
        lambda_api.ARN_TO_LAMBDA[arn].last_modified = self.LAST_MODIFIED
        lambda_api.ARN_TO_LAMBDA[arn].role = self.ROLE
        lambda_api.ARN_TO_LAMBDA[arn].memory_size = self.MEMORY_SIZE
    def _assert_contained(self, child, parent):