building code
A set of rules and requirements, based on agreed upon safety standards within a specific area, a building code is a regulation that determines the design, construction, and materials used in building.
If a property doesn't pass inspection, showing that all is according to building code, then an occupancy permit is not issued until the building is brought up to code.