<?xml version="1.0"?>
<law><site_title>Virginia Decoded</site_title><site_url>https://vacode.org</site_url><law_id>377746</law_id><section_number>8.01-658</section_number><catch_line>When and from whom response required; dismissal of habeas petition without prejudice</catch_line><edition url="https://vacode.org/2026/" slug="2026" current="TRUE" last_updated="2026-08-02">2026</edition><structure><unit label="title" level="1" order_by="12" identifier="8.01">Civil Remedies and Procedure</unit><unit label="chapter" level="2" order_by="55" identifier="25">Extraordinary Writs</unit><unit label="article" level="3" order_by="1" identifier="3">Habeas Corpus</unit></structure><text>
						<section id="A"><p><span class="prefix-number">A.</span> Except as may be provided in the Rules of Supreme <span class="dictionary">Court</span> of Virginia, no response to a <span class="dictionary">petition</span> for a <span class="dictionary">writ</span> of <span class="dictionary">habeas corpus</span> shall be required except upon an <span class="dictionary">order</span> of the <span class="dictionary">court</span>, directed to the <span class="dictionary">person</span> in whose <span class="dictionary">custody</span> the petitioner is detained or on the <span class="dictionary">person</span> having the immediate or potential <span class="dictionary">custody</span> of him, and made returnable as soon as may be before the <span class="dictionary">court</span> ordering the same. <a id="paragraph-1409082" class="section-permalink" href="https://vacode.org/8.01-658/#A"><i class="fa fa-link"/></a></p></section>
						<section id="B"><p><span class="prefix-number">B.</span> When the <span class="dictionary">petition</span> challenges a criminal <span class="dictionary">conviction</span> or sentence: <a id="paragraph-1409083" class="section-permalink" href="https://vacode.org/8.01-658/#B"><i class="fa fa-link"/></a></p></section>
						<section id="B1" class="indent-1"><p><span class="prefix-number">1.</span> If the petitioner is in jail, prison, or other actual physical restraint due to the <span class="dictionary">conviction</span> or sentence he is attacking, the named respondent shall be (i) the Director of the Department of Corrections or the warden or superintendent of the state correctional facility where the petitioner is detained if the petitioner has been committed to, or is subject to transfer to, the Department of Corrections or (ii) the <span class="dictionary">sheriff</span> or superintendent of a local or regional jail facility if the petitioner&#x2019;s sentence will be served in such local or regional jail facility. <a id="paragraph-1409084" class="section-permalink" href="https://vacode.org/8.01-658/#B1"><i class="fa fa-link"/></a></p></section>
						<section id="B2" class="indent-1"><p><span class="prefix-number">2.</span> If the petitioner is on <span class="dictionary">probation</span> or <span class="dictionary">parole</span> due to the <span class="dictionary">conviction</span> or sentence he is attacking, the named respondent shall be the <span class="dictionary">probation</span> or <span class="dictionary">parole</span> officer responsible for supervising the applicant or the official in charge of the <span class="dictionary">parole</span> or <span class="dictionary">probation</span> agency. <a id="paragraph-1409085" class="section-permalink" href="https://vacode.org/8.01-658/#B2"><i class="fa fa-link"/></a></p></section>
						<section id="B3" class="indent-1"><p><span class="prefix-number">3.</span> If a petitioner has a <span class="dictionary">suspended sentence</span> and is not under supervision by a <span class="dictionary">probation</span> or <span class="dictionary">parole</span> officer, the respondent shall be (i) the local <span class="dictionary">sheriff</span> if the <span class="dictionary">judgment</span> of <span class="dictionary">conviction</span> the petitioner challenges has a <span class="dictionary">suspended sentence</span> of less than one year or (ii) the Director of the Department of Corrections if the <span class="dictionary">judgment</span> of <span class="dictionary">conviction</span> the petitioner challenges has a <span class="dictionary">suspended sentence</span> of one year or more. <a id="paragraph-1409086" class="section-permalink" href="https://vacode.org/8.01-658/#B3"><i class="fa fa-link"/></a></p></section>
						<section id="C"><p><span class="prefix-number">C.</span> The petitioner shall name a proper <span class="dictionary">party</span> respondent, and if he fails to do so, the <span class="dictionary">court</span> may allow amendment of the <span class="dictionary">petition</span>. If the petitioner fails to <span class="dictionary">amend</span> the <span class="dictionary">petition</span> by naming a proper <span class="dictionary">party</span> respondent in the time provided by the <span class="dictionary">court</span>, the <span class="dictionary">court</span> in which the <span class="dictionary">petition</span> is filed shall dismiss the habeas <span class="dictionary">petition</span> without prejudice. <a id="paragraph-1409087" class="section-permalink" href="https://vacode.org/8.01-658/#C"><i class="fa fa-link"/></a></p></section>
						<section id="D"><p><span class="prefix-number">D.</span> If the <span class="dictionary">court</span> in which the <span class="dictionary">petition</span> was filed determines that the petitioner&#x2019;s <span class="dictionary">allegations</span> present a case for the determination of unrecorded matters of <span class="dictionary">fact</span> relating to a previous judicial proceeding in any <span class="dictionary">circuit</span> <span class="dictionary">court</span>, the <span class="dictionary">court</span> may transfer the <span class="dictionary">petition</span> to the <span class="dictionary">circuit</span> <span class="dictionary">court</span> in which such judicial proceeding occurred, or if the <span class="dictionary">petition</span> was filed in the Supreme <span class="dictionary">Court</span>, the <span class="dictionary">Court</span> may require the <span class="dictionary">circuit</span> <span class="dictionary">court</span> in which such judicial proceeding occurred to conduct an evidentiary <span class="dictionary">hearing</span>, in accordance with such procedures as may be set forth in the Rules of Supreme <span class="dictionary">Court</span> of Virginia. <a id="paragraph-1409088" class="section-permalink" href="https://vacode.org/8.01-658/#D"><i class="fa fa-link"/></a></p></section></text><history>Code 1950, &#xA7; 8-599; 1977, c. 617; 2015, c. 554; 2019, cc. 8, 48.</history><metadata></metadata></law>
