Are louvered bedroom doors allowed by code?
The only INTERIOR door mentioned in the code is the door between the garage and an interior room in the house. (The code requires it to be fire rated...basically it needs to be solid core, the frame needs to have rabbeted frames (no applied stops), side hinged and it must have a latch...not a catch.)

EXTERIOR doors need to have a certain energy rating. 

IMHO I think you should sleep with the door open, so you can hear the smoke alarm in the hall.