cast http code to int