Building codes are laws that cover official safety rules on construction and design. Everyone must follow the laws. It does not matter how big or small your project is.
The National Kitchen and Bath Association (NKBA) offers guidelines that assist interior designers when creating bathrooms.