9 lines
264 B
Python
9 lines
264 B
Python
import urllib.request
|
|
try:
|
|
response = urllib.request.urlopen("https://mesh.ultramodul.xyz/")
|
|
print(f"Status Code: {response.getcode()}")
|
|
except urllib.error.HTTPError as e:
|
|
print(f"HTTP Error: {e.code}")
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|