how to get response code from requests python
import requests requests.get('https://www.google.com') if res.status_code == 200: print('successful') else: print('faild') # Informational responses (100–199) # Successful responses (200–299) # Redirects (300–399) # Client errors (400–499) # Server errors (500–599)