Is there a code that explicitly prohibits this?
This is all I can find about the primary condensate drain in the IRC:
“M1411.3 Condensate disposal. Condensate from all cooling
coils or evaporators shall be conveyed from the drain pan outlet
to an approved place of disposal. Condensate shall not discharge
into a street, alley or other areas where it would cause a