The Court of Appeals shall have authority to punish for contempt. In addition, in such cases over which the court would have appellate jurisdiction, the court shall have original jurisdiction to issue writs of mandamus, prohibition and habeas corpus.
Va. Code § 17.1-404