use single-step api func to check response code #2338