Where the writ of habeas corpus is refused, or where the writ is discharged after having been issued, and the prisoner has been denied bail, he may be admitted to bail by the Supreme Court or one of the judges thereof, pending appellate review.
SDCL 21-27-23