import json


def format_response(status_code, body):
    """
    formats the lambda response to api gateway response format
    :param status_code: response status code
    :param body: response body
    :return: dict
    """
    return {
        "statusCode": status_code,
        "body": json.dumps(body)
    }