Where required by this code or provided, stairways shall comply with this section.
Exceptions: 1. Stairways not within or serving a building, porch or deck.
2. Stairways leading to nonhabitable attics.
3. Stairways leading to crawl spaces.