def geterr(obj):
    """
    Returns false if there are no errors in a network response,
    else a tuple of (code integer, description string)
    """
    error = obj.get("error")
    if not error:
        return False
    return (error["code"], error["description"])