import requests


def check_csv(url: str) -> bool:
    """Checks if the CSV from URL file is available.

    Args:
        url: str - an URL link or a filepath to a CSV file

    Returns:
        bool: True if the CSV file is available
    """
    status_code = requests.get(url).ok

    if status_code:
        print("CSV status code: 200")
        return True

    print("Error: Can't connect to CSV file.")
    return False