A good place to start is the website for the local building department or zoning board. There you will find a list of the codes that apply to your area and information on how to comply with them.