human
Checking if a website is up
assistant
Here is some code to check the status code of url `url`

r = requests.head(url)
return (r.status_code == 200)

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