James Harden had 40 points and came an assist shy of a triple-double to lead the Rockets to a 117-109 win over the New Orleans Pelicans.