Why not just: ``r.status_code == 200``?