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:
Much simpler check would be
if resp.ok : print ('OK!') else: print ('Boo!')