If the application for a permit and the accompanying contract documents describing the work do not conform to the requirements of the technical codes or other pertinent laws, regulations, or ordinances, the building official shall not issue a permit, but shall return the contract documents to the applicant with his or her refusal to issue such permit. Such refusal shall, when requested, be in writing and shall contain the reason for refusal.