Retirement tax questions

A distribution code of 1 means early withdrawal, no penalty exception.
Using 401k money to buy a home is not an exception to the penalty for early withdrawal, and the distribution is fully taxable as ordinary income.