Like GummyCarbs said, check the EGR vacuum modulator 1st as it seems to be the leading p0401 cause.
The EGR vacuum modulator is the little UFO thing to the passengers side of the EGR valve itself. Pop the top cover off by hand (no tools needed) and if the foam/filter under the cap is black then the modulator is bad due to the diaphragm leaking and letting carbon fouled gas through. Search mud for more info on it but that seems a likely failure scenario and what I found on my 97.
Although the modulator is the place to start, the EGR valve itself can get fouled up/etc. and stop opening/closing but can be tested, at least in some regards, easily with just a length of vacuum hose:
https://www.google.com/url?sa=t&rct...=CsZV5YbWOQ0&usg=AOvVaw1K31KilLukRve4cq6Up16K
When the modulator has failed the VSV often gets messed up after driving around with a bad EGR modulator with carbon in the vacuum system so you should test it as well while you are at it. FSM and this forum have testing info but basically it should be open when unplugged so that air passes through the correct hoses and closed when powered so that air stops passing through. In the image below air should pass through the red dotted inlet/outlet when the VSV isn't powered up and should not pass through from red to red when it is. The green dot is roughly where the port that passes through the upper manifold is which can clog.
If you want to save $100 bucks on the VSV the following unit is an easy to fit alternative:
vsv valve - dorman 911-850
A failed VSV valve, clogged port through the upper manifold for it, cracked lines, etc. may not create a 401 (I guess some leaking lines would?) but could all be at play here also.