§ 16–1901. Petition; issuance of writ.
(a) A person committed, detained, confined, or restrained from his lawful liberty within the District, under any color or pretense whatever, or a person in his behalf, may apply by petition to the appropriate court, or a judge thereof, for a writ of habeas corpus, to the end that the cause of the commitment, detainer, confinement, or restraint may be inquired into. The court or the judge applied to, if the facts set forth in the petition make a prima facie case, shall forthwith grant the writ, directed to the officer or other person in whose custody or keeping the party so detained is returnable forthwith before the court or judge.
(b) Petitions for writs directed to Federal officers and employees shall be filed in the United States District Court for the District of Columbia.
(c) Petitions for writs directed to any other person shall be filed in the Superior Court of the District of Columbia.