116.1 General; When to Be Issued
A certificate of occupancy indicating completion of the work for which a permit was issued shall be obtained prior to the occupancy of any building or structure, except as provided for in this section generally and as specifically provided for in Section 113.8 for additions or alterations. The certificate shall be issued after completion of the final inspection and when the building or structure is in compliance with this code and any pertinent laws or ordinances, or when otherwise entitled. The building official shall, however, issue a certificate of occupancy within five working days after being requested to do so, provided the building or structure meets all of the requirements for a certificate.
Exception: A certificate of occupancy is not required for an accessory structure as defined in the International Residential Code.
Upon the request of a permit holder, a temporary certificate of occupancy may be issued before the completion of the work covered by a permit, provided that such portion or portions of a building or structure may be occupied safely prior to full completion of the building or structure without endangering life or public safety.