New York Laws
Article 11 - Action for Separation
202 - Defense of Justification.

ยง 202. Defense of justification. The defendant in an action for
separation from bed and board may set up, in justification, the
misconduct of the plaintiff; and if that defense is established to the
satisfaction of the court, the defendant is entitled to judgment.