dmertz
Level 15

Get your taxes done using TurboTax

Code 4 suggests that you received the distribution as beneficiary of a deceased participant.  With regard to any early-distribution penalty, code 4 is treated the same as code 2 or code 7, meaning that it is not subject to this penalty.  The only difference is that code 4 just means that a non-spouse beneficiary is not permitted to roll over this distribution.