in python request get response body code example
Example: python print return code of requests
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404