123 is "throttle position sensor voltage too high"(damaged wires,sensor, or ECM pins) and 505 is "idle air control valve output stage cutoff memory difference" (damaged actuator,wires,connector, or ECM output pins).
Sounds like fun. Probably bad connections (or wet)is first easiest guess,or if all else fails maybe ECM communication problems which i think can be sometimes fixed by hooking to the dealers laptop and "re-flashing" the ECM software (I read that here somewhere i think)