§ 23–110. Remedies on motion attacking sentence.
(a) A prisoner in custody under sentence of the Superior Court claiming the right to be released upon the ground that (1) the sentence was imposed in violation of the Constitution of the United States or the laws of the District of Columbia, (2) the court was without jurisdiction to impose the sentence, (3) the sentence was in excess of the maximum authorized by law, (4) the sentence is otherwise subject to collateral attack, may move the court to vacate, set aside, or correct the sentence.
(b)(1) A motion for such relief may be made at any time.
(2) A motion for such relief may be dismissed if the government demonstrates that it has been materially prejudiced in its ability to respond to the motion by the delay in its filing, unless the movant shows that the motion is based on grounds which the movant could not have raised by the exercise of reasonable diligence before the circumstances prejudicial to the government occurred.
(c) Unless the motion and files and records of the case conclusively show that the prisoner is entitled to no relief, the court shall cause notice thereof to be served upon the prosecuting authority, grant a prompt hearing thereon, determine the issues, and make findings of fact and conclusions of law with respect thereto. If the court finds that (1) the judgment was rendered without jurisdiction, (2) the sentence imposed was not authorized by law or is otherwise open to collateral attack, (3) there has been such a denial or infringement of the constitutional rights of the prisoner as to render the judgment vulnerable to collateral attack, the court shall vacate and set the judgment aside and shall discharge the prisoner, resentence him, grant a new trial, or correct the sentence, as may appear appropriate.
(d) A court may entertain and determine the motion without requiring the production of the prisoner at the hearing.
(e) The court shall not be required to entertain a second or successive motion for similar relief on behalf of the same prisoner.
(f) An appeal may be taken to the District of Columbia Court of Appeals from the order entered on the motion as from a final judgment on application for a writ of habeas corpus.
(g) An application for a writ of habeas corpus in behalf of a prisoner who is authorized to apply for relief by motion pursuant to this section shall not be entertained by the Superior Court or by any Federal or State court if it appears that the applicant has failed to make a motion for relief under this section or that the Superior Court has denied him relief, unless it also appears that the remedy by motion is inadequate or ineffective to test the legality of his detention.