What is the easiest way to check whether the response received from a requests post was \"200 OK\" or an error has occurred?
I tried doing something like this:
try:
if resp.status_code == 200: print ('OK!') else: print ('Boo!)