It is illegal to use a building in a way that goes against its Certificate of Occupancy. You can report a Certificate of Occupancy violation here.