Well if you can't stand the heat stay out of the kitchen. I don't mind a little thought-provoking dialogue.
Call it illegal - I don't mind. I'm in a peculiar situation where I don't know if keeping chickens in my city is illegal or not. My city prohibits letting chickens run at large. And it also prohibits barns, fences, stables, pens, and other enclosures for chickens. However, it does allow for temporary structures (which is defined as something not anchored to a foundation) for children's activities such as lemonade stands. There is no outright prohibition on chickens themselves. So is a chicken tractor illegal? I don't know.
As far as a moral obligation to follow laws. I think I will be OK with my Maker come judgement day. Not every zoning ordinance is Thus Saith The Lord. We need to honor our rightful authorities. It does not dishonor them to keep chickens in spite of an ordinance prohibiting such. Why?
Not every law passed is intended to be enforced rigorously. Does that mean we can break those laws if we observe the spirit of the law? Yes - if the law is not grounded in natural law. For example, bicycling on sidewalks. Illegal in most cities yet broken by every six-year-old in town. Is there something inherently evil about bicycling on a narrow strip of concrete? No. The prohibition of biking on sidewalks is not directly prohibited in natural law. Instead the law is put in place so that if an officer sees someone who appears to be recklessly biking on sidewalks creating a hazard to other pedestrians he can stop him and cite him. Without the law the officer needs to establish some evidence that the way the cyclist was riding was a hazard to others. That is difficult to do. So an outright prohibition on biking on sidewalks is made to simplify the officer's job, with the hope that the officers will excersize good judgment and not begin hauling in 100's of kids ages 6-10.
So am I an Outlaw for keeping chickens? I suppose I am. But you can add that to my long list of violations such as; biking on sidewalks, jay-walking, running stop signs while on a bike, driving 5 mph over the speed limit, discharging a BB-gun in the backyard, playing loud music, allowing knoxious weeds to grow in my yard, bounced a check once.
Now if the city fathers tell you to get rid of your chickens and you don't that's a different story.