If bail on appeal be denied, or the amount fixed be excessive, the defendant shall be entitled to a review of the action of the trial court and its reasons for refusing bail, by habeas corpus proceedings before the appellate court, or if the court be not in session, then by some judge of said court.
Okla. Stat. tit. 22, § 1079