Had the same thing after installing a "no tune necessary" CAI from AFE... No vaccum leaks either. Pulled same codes 0171 and 0174 or 3.. Can't remember. Anyway, your CAI is definitely making your Stang run lean. No such thing as "no tune" CAI. Each CAI will deliver way more air than your stock airbox. You will need to get a custom tune to allow the ECU to manage the air/fuel properly. You will either have to get it dyno tuned... (Expensive) or get an XCal2 or 3, or Diablo, etc tuner and a tune to support your mods.... Do something quickly as you do not want to run lean for long, if at all. One of the worst conditions to run your pony under. Better to be rich than lean. Anyway.. Definitely caused by your CAI delivering more air and the fuel delivery stayed the same. You are running dangerously lean if your ECU is pulling codes. Hope this helps ! Best of luck !