It is common even for states that do not tax pensions, to assess tax on early pension distributions. Code 2 indicates "Early distribution, exception applies".
Since we do not know which state you are referring, we cannot be positive of why your state is charging you tax.