import json


def response(code, message):
    """Returns a response dictionary."""
    return {
        "statusCode": str(code),
        "body": json.dumps({
            "text": message,
            "response_type": "in_channel",
            "user_name": "PivotalTracker"
        }),
        "headers": {
            "Content-Type": "application/json",
        },
    }