python print return code of requests

33

>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404

Comments

Submit
0 Comments