It shall be unlawful for any person, firm, or corporation to erect or construct any building, or remodel or rehabilitate any existing building or structure in the state, or allow the same to be done, contrary to or in violation of any of the provisions of this code.