Human: Checking if a website is up Assistant: 
Here is some code to check the status code of url "http://www.stackoverflow.com"

urllib.request.urlopen('http://www.stackoverflow.com').getcode()

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