Your IAC (idle air control) may have caused your ERG code.
If you still get a P401 ERG code afterwards then chances are your DPFE is bad, or the hose came off of it....
I had the P401 and it turned out to be the DPFE.
What's funny is there was no mil for the DPFE, but when tested it was out of spec.


1996 2.5LT V6 Contour ATX My Tour+help/info pics E0 rims, Gutted Pre-Cats,CTA Custom Exhaust & Intake, Diablo Chip.