A certificate of occupancy for any existing building may be obtained by applying to the building official and supplying the information and data necessary to determine compliance with the technical codes for the occupancy intended. Where necessary, in the opinion of the building official, 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 articles for such occupancy, a certificate of occupancy shall be issued.