Again ....
Which laws and codes are not free and online?
It depends on your jurisdiction. My city codes are online but not my county for example. If you live in California you just got online access to state laws in the past 18months due to work and lawsuits from people like this. Etc.