Information is, apparently, not meant to be free.
Because just try finding building codes online for free. The problem is that the International Building Code (IBC) is administered by a group called the International Code Council. I really don't know if the ICC is a for-profit organization, but I grudgingly accept that they have costs to cover.
But over $100 for a book? Can't you people deliver a cheap, electronic version of the IBC online? Contractors and DIY homeowners are just trying to read the thing so they can save lives, is all.
A site called Scribd has always been a good source for free online building codes, voluntarily scanned by certain individuals who don't pay a lot of attention to issues of copyrights. I'm not even going to link directly to the IBC because I'm sure the link will be taken down before long. But you can find it. The IBC is adopted by states and changed accordingly, but it can give you the basics of things like bathroom code.