# 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.


global DOCKER_MAIN_CONTAINER_IP
    if DOCKER_MAIN_CONTAINER_IP is None:
        try:
            DOCKER_MAIN_CONTAINER_IP = bootstrap.get_main_container_ip()
        except Exception as e:
            LOG.info('Unable to get IP address of main Docker container "%s": %s' %
                (bootstrap.MAIN_CONTAINER_NAME, e))
            DOCKER_MAIN_CONTAINER_IP = False
    
    return DOCKER_MAIN_CONTAINER_IP or config.DOCKER_HOST_FROM_CONTAINER
class LambdaExecutor(object):
    """ Base class for Lambda executors. Subclasses must overwrite the _execute method """
    def __init__(self):
        
        self.function_invoke_times = {}
    def execute(self, func_arn, func_details, event, context=None, version=None,
            asynchronous=False, callback=None):
        def do_execute(*args):
            @cloudwatched('lambda')
            def _run(func_arn=None):
                
                invocation_time = int(time.time() * 1000)
                
                raised_error = None
                result = None
                dlq_sent = None