Python mendapatkan respons dari URL

import requests
r = requests.get("https://google.com")
print(r.status_code)
#100- 199 Informational
#200-299 Succes
#300-399 Redirection
#400-499 CLIENT ERROR 
#500-599 SERVER ERROR
Therealcoder