added http code check to first RK API call