The writ may be had for the purpose of letting a prisoner to bail in civil and criminal actions.
Okla. Stat. tit. 12, § 1344