In no case, civil or criminal, whether in a court of record or a court not of record, except when otherwise specially provided, shall there be a judgment for costs against the Commonwealth.

Code 1950, § 14-197; 1964, c. 386, § 14.1-201; 1998, c. 872.