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 standard building 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 standard building codes and other applicable laws and ordinances for such occupancy, a certificate of occupancy shall be issued.