import requests


def check_uri(uri, timeout=5):
    """
    Checks if a uri returns response of 200 if it is requested
    Will return True if the response is 200, false otherwise
    :param uri: URI to request
    :param timeout: how long to return False, if we do not get a response
    :return: True/False
    :rtype: bool
    """
    try:
        r = requests.get(url=uri, timeout=timeout)
        return r.status_code == 200
    except (requests.ConnectTimeout, requests.RequestException):
        return False