It varies from one jurisdiction for another. I would suggest contacting your municipal government and asking them. In my city, the department to ask is called "property standards" but it might be part of your town's building department.
Lots of towns have pretty good websites that show, at a minimum, the phone numbers for the various departments in town government.