Here is a 400a solenoid with arrows pointing to the Regen Diode (right hand side) and the Suppression Diode (bottom middle) properly installed. Note that the banded/striped side of the diode is facing and attached to the positive activation or battery/current supply sides to give the needed protection.
Solenoid with Diodes.jpg