But those are often trumped by county or municipal laws.
e.g. Most urban/suburban parts of California either restrict or require permits to raise backyard chickens (also, predators are a huge problem):
https://www.omlet.us/guide/chickens/laws_about_keeping_chick...
https://www.quora.com/Are-backyard-chickens-legal-in-Califor...
(Palo Alto: Up to six hens. Mountain View: Up to four hens. Los Altos: One hen per 1000 sq feet, no permit required. Sunnyvale: Zoning laws apply. Santa Clara: zoning restrictions apply. San Jose: Up to six without a permit, up to 20 with a permit. San Mateo: Up to 10 birds, depending on plot size, with a minimum plot requirement of 2500 sq feet (excludes most people). No permit required. San Francisco: Up to four, roosters allowed, no permit required. Oakland: No number restrictions, no permit required. Berkeley: No number restrictions, no permit required, roosters allowed. Anarchy!)
What we need roundabout now is a webcam campaign/tutorial on legal backyard chicken raising...