Better handling of http response codes in MPRester.