Ferrari produced a total of 400 Enzos between 2002 and 2004 .