import requests

# httpbin is a testing service. This URL deliberately returns HTTP 404.
url = "https://httpbin.org/status/404"

try:
    response = requests.get(url, timeout=15)
    response.raise_for_status()
    print("Request succeeded.")
    print("HTTP status:", response.status_code)
except requests.exceptions.HTTPError as e:
    print("The server answered, but with an HTTP error.")
    print("HTTP status:", e.response.status_code)
    print("Error:", e)
except requests.exceptions.SSLError as e:
    print("SSL/TLS transport problem:", e)
except requests.exceptions.Timeout:
    print("The server took too long to answer.")
except requests.exceptions.RequestException as e:
    print("The request failed before a usable response was received:", e)