Except as otherwise provided in this code, the violation of any rules, regulations, or orders promulgated by any officer or agency of the municipality under authority vested in him, her, or it by law, by the provisions of this code, or by any ordinance or resolution, shall be unlawful.