<human>:  Checking if a website is up
<bot>: Here is some code to check the status code of url "www.python.org"

conn = httplib.HTTPConnection('www.python.org')
conn.request('HEAD', '/')
r1 = conn.getresponse()
print(r1.status, r1.reason)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.