Please consult your local building code office for requirements specific to your area.
If you do not follow the building codes of your area, you may end up facing fines in the end. You can find a list of building codes by state here. The codes include building, plumbing, electrical, fire, accessibility, and more.
Do not rely solely on the information on this list, different cities and counties may have additional things that need to be followed, so it is important to check with them before beginning any project.