You should use Code 2. The IRS issued a correction to the 1099 instructions. See
IRS ChangesThe revised instructions now specify that you should use Code 2 for any distribution subject to an exception under section 72(q), (t), and (v) that is not required to be reported using Code 1, 3, or 4.
QDRO distributions are subject to the exception under section 72(t)(2)©.