§ 8.01-662.Judgment of court or judge trying it; payment of costs and expenses when petition denied.
Chapter 25. Extraordinary Writs · Article 3. Habeas Corpus · Last amended 2019 · Last verified July 16, 2026
Full Text of § 8.01-662
Plain-English Summary
After hearing the response and any other evidence, Section 8.01-662 gives the court a set of options: discharge the petitioner, remand him, grant other relief he is entitled to, or admit him to bail, while also adjudging the costs of the proceeding, including the expense of transporting the prisoner.
Losing the petition carries a financial consequence. If the petition is denied, the costs and expenses of the proceeding, along with the fees of any attorney appointed to represent the petitioner, are assessed against the petitioner himself. Anything collected on that assessment is paid over to the Commonwealth.
When relief is granted instead, the order granting it must be served on both the respondent and the petitioner. The court has flexibility in how that service happens — personal service, or transmitting a certified copy by regular or certified mail, a third-party commercial carrier, or electronic delivery.
Frequently Asked Questions
What can the court do after a habeas corpus hearing?
Discharge the petitioner, remand him, grant him any other relief to which he is entitled, or admit him to bail, and adjudge the costs of the proceeding, including the cost of transporting the prisoner.
Who pays the costs if my habeas corpus petition is denied?
You do. The costs and expenses of the proceeding and the fees of any attorney appointed to represent you are assessed against you, and if collected, paid to the Commonwealth.
Does the section say who pays costs if my petition is granted?
No. The cost-shifting rule in this section applies specifically when the petition is denied; it does not address who bears costs when relief is granted.
How is an order granting habeas corpus relief served on the parties?
The court may serve it personally, or by transmitting a certified copy to the parties by regular or certified mail, a third-party commercial carrier, or electronic delivery.
Can the court charge me for the cost of being transported for the hearing?
Yes. The costs the court adjudges under this section include the charge for transporting the prisoner.
Amendment History
Code 1950, § 8-603; 1968, c. 482; 1977, c. 617; 2019, cc. 8, 48.