Okla. Stat. tit. 12 § 1331 : — Civil ProcedureHabeas Corpus — Every Person Restrained of His Liberty May Prosecute a Writ of Habeas Corpus TEXT PDF Every person restrained of his liberty, under any pretense whatever, may prosecute a writ of habeas corpus to enquire into the cause of the restraint, and shall be delivered therefrom when illegal. Okla. Stat. tit. 12, § 1331 R.L. 1910, § 4882.