def request_url(url):
    '\n    Function to send https or http request to this url and return code result.\n\n    Parameters\n    ----------\n    url : string\n        This variable contain url must be checked\n\n    Returns\n    -------\n    status_code : int\n        Code result\n\n    '
    try:
        url = ('https://' + format(url))
        response = requests.head(url, allow_redirects=True, timeout=10)
    except:
        try:
            url = ('http://' + format(url))
            response = requests.head(url, allow_redirects=True, timeout=10)
        except:
            return '404'
    if response.status_code:
        return response.status_code
    else:
        return '404'
Function to send https or http request to this url and return code result.

Parameters
----------
url : string
    This variable contain url must be checked

Returns
-------
status_code : int
    Code result
def request_url(url):
    '\n    Function to send https or http request to this url and return code result.\n\n    Parameters\n    ----------\n    url : string\n        This variable contain url must be checked\n\n    Returns\n    -------\n    status_code : int\n        Code result\n\n    '
    try:
        url = ('https://' + format(url))
        response = requests.head(url, allow_redirects=True, timeout=10)
    except:
        try:
            url = ('http://' + format(url))
            response = requests.head(url, allow_redirects=True, timeout=10)
        except:
            return '404'
    if response.status_code:
        return response.status_code
    else:
        return '404'