(a)
(1) The writ of habeas corpus shall be issued upon proper application by a Justice of the Supreme Court or a judge of the circuit court. The power of the Supreme Court and circuit court to issue writs of habeas corpus shall be coextensive with the state.
(2)
(A) The county judge shall have power coextensive with his or her county in the absence of the circuit judge therefrom to issue, hear, and determine writs of habeas corpus on proper application of parties entitled thereto, in all cases and with like powers, in which the circuit judge may issue and determine a writ of habeas corpus.
(B) However, no county judge shall have power to issue or hear any writ of habeas corpus in any case in which an indictment has been found by a grand jury.
(b) If any officer enumerated in subsection (a) of this section shall, when legally applied to, refuse to issue the writ of habeas corpus to the petitioner, he or she shall forfeit and pay to the petitioner five hundred dollars ($500).