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


response._content = response_content_str
                append_last_modified_headers(response=response, content=response_content_str)
                
                
                
                
                
                if method != 'GET' or not is_object_specific_request(path, headers):
                    response._content = re.sub(r'([^\?])>\n\s*<', r'\1><', response_content_str, flags=re.MULTILINE)
                
                response._content = self._update_location(response._content, bucket_name)
                
                if is_bytes:
                    response._content = to_bytes(response._content)
                
                
                
                if 'text/html' in response.headers.get('Content-Type', '') \
                        and not response_content_str.lower().startswith('<!doctype html'):
                    response.headers['Content-Type'] = 'application/xml; charset=utf-8'
                reset_content_length = True
            
            if method == 'DELETE':
                reset_content_length = True
            if reset_content_length:
                response.headers['Content-Length'] = str(len(response._content))
            
            convert_to_chunked_encoding(method, path, response)
UPDATE_S3 = ProxyListenerS3()