The writ may be had for the purpose of letting a prisoner to bail in civil and criminal actions.
R.L. 1910, § 4895.