import json


def create_return_json(http_code, body_dict):
    """Returns json that is acceptable for the API gateway to interpret the
    results and pass it on to the caller.
    
    Arguments:
        http_code {int} -- [description]
        body_dict {dict} -- [description]
    
    Returns:
        dict -- dict that can be converted to json for sending back to the API gateway
    """
    retval = {
        "statusCode": http_code,
        "body": json.dumps(body_dict)
    }
    return retval