> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Wis. Stat. § 782.22 — Discharge if in custody under process

- **Citation**: Wis. Stat. § 782.22
- **Node Type**: section
- **Jurisdiction**: Wisconsin (state)
- **Code Body**: Wisconsin Statutes (updated through 2025 Wis. Act 247) (Wis. Stat.)
- **Official Source**: [https://docs.legis.wisconsin.gov/document/statutes/782.22](https://docs.legis.wisconsin.gov/document/statutes/782.22)
- **Canonical URL**: [https://corpuslaw.us/codes/wisconsin/chapter-782/section-782-22](https://corpuslaw.us/codes/wisconsin/chapter-782/section-782-22)
- **Semantic URL**: [https://corpuslaw.us/codes/wisconsin/chapter-782/section-782-22](https://corpuslaw.us/codes/wisconsin/chapter-782/section-782-22)

## Hierarchy

Chapter 782 — Habeas corpus

## Text

(1) If it appear that the prisoner is in custody by virtue of civil process of any court or issued by any officer in the course of judicial proceedings before the officer such prisoner can be discharged in the following cases only:

(a) Where the jurisdiction of such court or officer has been exceeded, either as to matter, place, law or person.

(b) Where, although the original imprisonment was lawful, yet by some act, omission or event which has taken place afterward the prisoner is entitled to be discharged.

(c) Where the process is void.

(d) When the process was issued in a case not allowed by law.

(e) Where the person having the custody of the prisoner is not empowered by law to detain the prisoner; or

(f) Where the process is not authorized by any judgment or order of any court nor by any provision of law.

(2) But no court or judge, on the return of such writ, shall inquire into the legality or justice of any judgment, order or execution specified in s. 782.21.
