Most cities have a law against hoofed animals in the city limits but my sister got away with it for years. If no one complains and you take really good care of him/her you can get away with it. The funny thing is, 6 months after he died animal control showed up looking for a goat someone complained about.
My city is strange in their laws. You can keep up to 3 chickens but I know a couple people with a flock. Hooved animals are illegal within city limits during the day, like someone was holding their 2 tiny baby goats a couple years ago in their yard for a trip out to the bay that evening. Or something. And the RCMP has their horses in town. And there was someone who kept their horse out of the city but would ride it in to some communities and give kids rides. Very lenient laws over here!