N.Y. Real Prop. Law § 223-b
health or safety law, regulation, code, or ordinance, the warranty of habitability under section two hundred thirty-five-b of this article, the duty to repair under sections seventy-eight, seventy-nine, and eighty of the multiple dwelling