Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print return code of requests

>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #return #code #requests
ADD COMMENT
Topic
Name
1+1 =