46-22-101. Applicability of writ of habeas corpus. (1) Except as provided in subsection (2), every person imprisoned or otherwise restrained of liberty within this state may prosecute a writ of habeas corpus to inquire into the cause of imprisonment or restraint and, if illegal, to be delivered from the imprisonment or restraint.

Terms Used In Montana Code 46-22-101

  • Appeal: A request made after a trial, asking another court (usually the court of appeals) to decide whether the trial was conducted properly. To make such a request is "to appeal" or "to take an appeal." One who appeals is called the appellant.
  • Court: means a place where justice is judicially administered and includes the judge of the court. See Montana Code 46-1-202
  • Habeas corpus: A writ that is usually used to bring a prisoner before the court to determine the legality of his imprisonment. It may also be used to bring a person in custody before the court to give testimony, or to be prosecuted.
  • Offense: means a violation of any penal statute of this state or any ordinance of its political subdivisions. See Montana Code 46-1-202
  • Person: includes a corporation or other entity as well as a natural person. See Montana Code 1-1-201
  • Prosecute: To charge someone with a crime. A prosecutor tries a criminal case on behalf of the government.
  • Sentence: means the judicial disposition of a criminal proceeding upon a plea of guilty or nolo contendere or upon a verdict or finding of guilty. See Montana Code 46-1-202
  • State: when applied to the different parts of the United States, includes the District of Columbia and the territories. See Montana Code 1-1-201
  • Writ: A formal written command, issued from the court, requiring the performance of a specific act.
  • Writ: means an order in writing issued in the name of the state or of a court or judicial officer. See Montana Code 1-1-202

(2)The writ of habeas corpus is not available to attack the validity of the conviction or sentence of a person who has been adjudged guilty of an offense in a court of record and has exhausted the remedy of appeal. The relief under this chapter is not available to attack the legality of an order revoking a suspended or deferred sentence.