Is there a highway code for rail ?

Is there a highway code for rail ?