A certificate of occupancy for any existing building may be obtained by applying to the building official and supplying the information and date necessary to determine compliance with the technical codes for the occupancy intended. The building official may determine, if necessary, that two sets of detailed drawings, or a general inspection, or both, may be required. When, upon examination and inspection, it is found that the building conforms to the provisions of the technical codes and other applicable laws and ordinances for such occupancy, a certificate of occupancy shall be issued.