I don't know about the p1400 code, but here is some info on the p0401. There is not a specific part that you can replace and be assured that it will fix the problem, so it's best to diagnose the problem before throwing parts at it.
http://repairpal.com/OBD-II-Code-P0401