At or prior to the time the petition is to be heard the respondent may answer orally or in writing. If the answer is oral the substance thereof shall be recorded by the clerk or, if a particular court has no clerk, by the presiding judge or justice of such court, and maintained in the case record. The answer may contain any legal or equitable defense.
N.Y. Real Prop. Acts. Law § 797-H