check status_code for 200