Plumbing codes vary between residential and commercial installations and are generally adopted at the state or local level.