It is illegal to park on a freeway.
It is legal to park within 15 feet of a fire hydrant.
It is legal to park on the shoulder of the road as far away from traffic as possible in an emergency.