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 or ordinances, the building inspector shall not issue a permit, but shall return the contract documents to the applicant with his refusal to issue such permit. Such refusal shall, when requested, be in writing and shall contain the reasons for refusal.