Real SQS throws `There should be at least one SendMessageBatchRequestEntry in the request. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.EmptyBatchRequest;` when there is a send batch of zero size.

This would be useful to mimic inside localstack in order to find these bugs earlier.
response = flask_error_response(msg, code=code, error_type=error_type)
    return flask_to_requests_response(response)
def requests_response(content, status_code=200, headers={}):
    resp = RequestsResponse()
    content = json.dumps(content) if isinstance(content, dict) else content
    resp._content = content
    resp.status_code = status_code
    resp.headers = headers
    return resp
def flask_to_requests_response(r):
    return requests_response(r.data, status_code=r.status_code, headers=r.headers)
def requests_to_flask_response(r):
    return Response(r.content, status=r.status_code, headers=dict(r.headers))
def response_regex_replace(response, search, replace):
    response._content = re.sub(search, replace, to_str(response._content), flags=re.DOTALL | re.MULTILINE)
    response.headers['Content-Length'] = str(len(response._content))
class LambdaResponse(object):
    
    def __init__(self):
        self.content = False
        self.status_code = None
        self.multi_value_headers = CaseInsensitiveDict()
        self.headers = CaseInsensitiveDict()
class MessageConversion(object):