def handle_error(reason):
    """
    Returns a dict containing err and reason

    :param reason: A string, why it failed
    :return: A dict containing err and reason
    :rtype: dict
    """
    return {
        "err": True,
        "reason": reason
    }