cast http response code to int