get user by id(s) api with correct http code response