So, from your post we can determine it is a 1974 to 1999 model Subaru with a boxer engine, unless its a 2001 up H6 with an EGR malfunction or circuit issue.
General questions can only get general answers. EGR systems on Subarus varied in style and function.
How did you check the EGR solenoid?
How did you check the EGR Valve?
Did you check the operation of the transducer?
Do you have an exhaust leak?
Did you check all the electrical plugs and connections for clean and tight? No corrosion?
Have you checked the MAP/BARO sensor?
Did you check the ECM circuits?
Is the 400 code the only one? Are there or were there others? How soon after you drive it does the MIL illuminate?
Depending on the year of the car, and your current weather when this is occurring, there is also a chance that ice is developing in the vacuum hose to the MAP. Subaru had a fix for that.
General questions can only get general answers. EGR systems on Subarus varied in style and function.
How did you check the EGR solenoid?
How did you check the EGR Valve?
Did you check the operation of the transducer?
Do you have an exhaust leak?
Did you check all the electrical plugs and connections for clean and tight? No corrosion?
Have you checked the MAP/BARO sensor?
Did you check the ECM circuits?
Is the 400 code the only one? Are there or were there others? How soon after you drive it does the MIL illuminate?
Depending on the year of the car, and your current weather when this is occurring, there is also a chance that ice is developing in the vacuum hose to the MAP. Subaru had a fix for that.