(a) It shall be unlawful for the owner, lessee, occupant or person in charge of any premises in the city to possess and maintain any animal or fowl within the city or permit to be maintained thereon any stable, shed, pen or other place where horses, mules, cattle, sheep, goats or swine, or undomesticated animals are kept.
(b) This provision shall not apply to:
(1) The maintaining of a stockyard or sales barn for the loading, unloading, temporary detention and sale of such livestock, if the location of such stockyard or sales barn does not otherwise violate the zoning ordinances of the city;
(2) The maintaining of dogs which are regulated by Art. 2 of this chapter;
(3) The maintaining of non-poisonous and non-vicious animals and fowl which are commonly kept as household pets, such as cats, hamsters, rabbits, parakeets and comparable animals, when kept as household pets and in a safe and sanitary manner in accordance with § 2-113; and
(4) The transporting of animals through the city by ordinary and customary means.