Python‎ > ‎requests‎ > ‎

requests.status_codes


Definition
Convert the number or string into the integer value.

Syntax
requests.status_codes

Examples
The status_code convert the string value into integer.
 >>> import requests
>>> r=requests.get('http://www.pythonlake.com/contactus')
>>> r.status_code
404

Comments