{"data":{"id":"us-mt/46-22-101","jurisdiction":"us-mt","citation":"46-22-101","heading":"Applicability of writ of habeas corpus.","body":"(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.\n(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.","path":["TITLE 46. CRIMINAL PROCEDURE","CHAPTER 22. HABEAS CORPUS","Part 1. Availability of Writ"],"source_url":"https://mca.legmt.gov/bills/mca/title_0460/chapter_0220/part_0010/section_0010/0460-0220-0010-0010.html","current_through":"Montana Code Annotated 2025","vintage":"","retrieved_at":"2026-09-14T04:55:55Z","sha256":"48d883c5d764f3e49c30ae00852d6dcf27c58485653dd26863b6a11c9b6f624b","source_id":"us-mt","stale":false,"prev":"us-mt/46-21-203","next":"us-mt/46-22-102"},"notice":"GroundRules: Original legal text. Not legal advice."}
