So I want to get a list of response codes (Not to harcode it) from a library.
In python2 I could easily do something like this:
import httplib
....
if res.status_code != httplib.OK:
do_something
httplib is not present in python3 (I think I hhtp.client is in python3?)
Is there a library compatible with both Python2 and 3 to read the avaialble status codes?
six.moves.http_client.OK