No land or building or other structure or part thereof erected, moved, or altered in its use shall be occupied or used until the building official has issued a certificate of occupancy. A certificate of occupancy shall be issued only if the building or premises is found to conform to this chapter. If the certificate of occupancy is not granted upon request, the building official shall state in writing the reasons the certificate was not granted.