On the return of a writ of habeas corpus, no court or judge has authority to inquire into the regularity or justice of any order, judgment, decree or process of any court legally constituted, nor into the justice or propriety of any commitment for contempt made by a court, officer or body according to law and charged in such commitment.
Ala. Code § 15-21-23 (1975)