Where can I find the building code for my city?

I want to know things like;
  1. Minimum Size of Bedroom
  2. Do bedrooms need to have a door
  3. Do bedrooms need to have windows
  4. Hall way minium width