Absent a certificate of occupancy, the landlord is generally prohibited from recovering rent — but the specifics of your case matter.