No action shall be maintainable and no judgment of possession shall be entered for housing accommodations pursuant to section two hundred sixteen of this article, unless the landlord has complied with any and all applicable laws governing such action or proceeding and has complied with any and all applicable laws governing notice to tenants, including without limitation the manner and the time of service of such notice and the contents of such notice.
N.Y. Real Prop. Law § 217