Answers for "response 404 requests python compare"

0

response 404 requests python compare

Look at the r.status_code attribute:

if r.status_code == 404:
    # A 404 was issued.

e.g.:

>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404
Posted by: Guest on October-11-2021

Code answers related to "response 404 requests python compare"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language