check for response status_code