N.Y. Multiple Dwelling Law § 301
1. No multiple dwelling shall be occupied in whole or in part until the issuance of a certificate by the department that said dwelling conforms in all respects to the requirements of this chapter, to the building code and rules and to all other applicable law, except that no such certificate shall be required in the case of: a. Any class B multiple dwelling existing on April eighteenth, nineteen hundred twenty-nine, for which a certificate of occupancy was not required before such date and in which no changes or alterations have been made except in compliance with this chapter, and b. Any old-law tenement, or any class A multiple dwelling erected after April twelfth, nineteen hundred one, which was occupied for two years immediately before January first, nineteen hundred nine, and in which no changes or alterations have been made except in compliance with the tenement house law or this chapter, or wherein: