Whenever an application under this chapter for a writ of habeas corpus shall be refused, it shall not be lawful for any inferior court or officer to entertain any application for the relief sought from, and refused by, a superior court or officer.
§ 532.040, RSMo