Check request.status_code and compare with requests.codes to determine if failure