legal status of Certificate of Occupancy