You are allowed to keep chickens and any sort of hoofed animal in Brooklyn or New York City. Hoofed, as in donkey, goat, sheep….and chickens. Not roosters, but if you want fresh eggs from your back yard or roof top chickens that is totally legal.
BUT you are not allowed to legally keep bees. Sure people do it and I don’t know of any beekeepers spending jail time for dealing in home made honey, but it is illegal. WTF?!