Closed pmolina closed 5 years ago
http://docs.python-requests.org/en/master/api/#requests.Response.ok
response.status_code == requests.codes.ok checks only for 200 OK, while response.ok returns True if the status code is not >= 400.
response.status_code == requests.codes.ok
response.ok
True
http://docs.python-requests.org/en/master/api/#requests.Response.ok
response.status_code == requests.codes.ok
checks only for 200 OK, whileresponse.ok
returnsTrue
if the status code is not >= 400.