reglab/housing_qa huggingface dataset:
WI Stat § 782.22 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.22 - Discharge if in custody under process.

782.22  Discharge if in custody under process. (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.History:  1979 c. 32 s. 59, 92 (11); 1979 c. 176; Stats. 1979 s. 782.22; 1993 a. 486.
WI Stat § 782.23 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.23 - Prisoner, when bailed.

782.23  Prisoner, when bailed. If it appear that the prisoner has been legally committed for crime or if the prisoner appears, by the testimony offered with the return upon the hearing thereof, to be guilty of crime, although the commitment is irregular, the court or judge before whom the prisoner is brought shall release the prisoner on bail, if bailable and good bail be offered, or shall remand the prisoner.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.23.
WI Stat § 782.24 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.24 - Prisoner, when remanded.

782.24  Prisoner, when remanded. If the prisoner is not entitled to discharge and is not bailed the court or judge shall remand the prisoner to the custody from which taken, if the person who had custody is legally entitled to custody; if not so entitled, the prisoner shall be committed to his or her legal custodian.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.24.
WI Stat § 782.25 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.25 - Custody of prisoner pending proceedings.

782.25  Custody of prisoner pending proceedings. Until judgment be given upon the return the court or judge before whom the prisoner is brought may either commit the prisoner to the custody of the sheriff or place the prisoner in such care or under such custody as age and other circumstances may require.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.25.
WI Stat § 782.26 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.26 - Interested person notified.

782.26  Interested person notified. When it appears from the return to such writ that the prisoner is in custody on any process under which any other person has an interest in continuing imprisonment no order shall be made for discharge until it shall appear that the interested person or attorney, if the person has one, if to be found within the county, shall have sufficient notice of the time and place at which writ is returnable.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.26.
WI Stat § 782.27 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.27 - Notice to district attorney.

782.27  Notice to district attorney. When the prisoner is detained upon any criminal accusation no order for discharge shall be made until sufficient notice of the time and place at which such writ shall have been returned or shall be made returnable shall be given to the district attorney of the county, if to be found within the county.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.27.
WI Stat § 782.28 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.28 - Transfer from circuit court commissioner.

782.28  Transfer from circuit court commissioner. If the writ is returnable before a circuit court commissioner, either party may make a request for transfer to the court in which the matter is filed. Upon receipt of such request the circuit court commissioner shall forthwith transmit all papers and records in the proceedings to the court.History:  1977 c. 135; 1979 c. 32 s. 59; Stats. 1979 s. 782.28; 2001 a. 61.
WI Stat § 782.29 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.29 - Proceedings in absence of prisoner; appearance by attorney.

782.29  Proceedings in absence of prisoner; appearance by attorney. When from sickness or infirmity the prisoner cannot without danger be brought before the court or judge before whom the writ is made returnable the respondent may state that fact in the return, verifying the same by oath. If satisfied of the truth of such allegation and the return is otherwise sufficient, the court or judge shall proceed to dispose of the matter. The prisoner may appear by attorney and plead to the return. If it appears that the prisoner is illegally imprisoned the court or judge shall order discharge forthwith; but if it appears that the person is legally imprisoned and is not entitled to bail all further proceedings thereon shall cease.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.29.
WI Stat § 782.30 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.30 - Order of discharge, how enforced, action for damages.

782.30  Order of discharge, how enforced, action for damages. Obedience to any final order discharging or directing the discharge of any prisoner may be enforced by the court making the order by attachment, in the manner provided for a neglect to make a return to a writ of habeas corpus and with the like effect in all respects. The person who is guilty of disobedience of the order shall be liable to the prisoner in the sum of $1,250 for damages, in addition to any special damages that the prisoner may have sustained.History:  1979 c. 32 s. 59; Stats. 1979 s. 782.30; 1997 a. 254.
WI Stat § 782.31 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.31 - Nonliability of officers.

782.31  Nonliability of officers. No officer shall be liable for obeying any final order discharging or directing the discharge of any prisoner.History:  1979 c. 32 s. 59; Stats. 1979 s. 782.31.
WI Stat § 782.32 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.32 - Reimprisonment for same cause; when cause not same.

782.32  Reimprisonment for same cause; when cause not same. No person who has been discharged by the final order of any court or officer upon a writ of habeas corpus issued pursuant to the provisions of this chapter shall be again imprisoned, restrained or kept in custody for the same cause; but it shall not be deemed the same cause: (1) If the person has been discharged from a commitment on a criminal charge and is afterwards committed for the same offense by the legal order or process of the court wherein the person is bound by recognizance to appear or in which the person is informed against, indicted or convicted for the same offense; or (2) If after a discharge for defect of proof or for any material defect in the commitment in any criminal case the prisoner be again arrested on sufficient proof and committed by legal process for the same offense; or (3) If in a civil action the party has been discharged for any illegality in the judgment or process hereinbefore specified and is afterward imprisoned by legal process for the same cause or action; or (4) If in any civil action the person has been discharged from commitment on mesne process and shall be afterwards committed on execution in the same cause or on mesne process in any other cause after such first action shall have been discontinued.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.32.Cross-reference:  Effect of release on habeas corpus upon term of imprisonment, see s. 973.16.
WI Stat § 782.33 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.33 - Warrant in lieu of writ.

782.33  Warrant in lieu of writ. Whenever it shall appear by satisfactory proof that any person is held in illegal imprisonment and that there is good reason to believe that the person will be carried out of the state or suffer some irreparable injury before the person can be relieved by habeas corpus, the judge may issue a warrant, reciting the facts and directed to any sheriff, constable or other person, commanding him or her to take such prisoner and forthwith to bring the prisoner before the judge, to be dealt with according to law.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.33.
WI Stat § 782.34 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.34 - Order of arrest.

782.34  Order of arrest. When the proof mentioned in s. 782.33 shall also be sufficient to justify an arrest of the person having such prisoner in custody, as for a criminal offense committed in the taking or detaining of such prisoner, the warrant shall also contain an order for the arrest of such person for such offense.History:  1979 c. 32 ss. 59, 92 (11); 1979 c. 176; Stats. 1979 s. 782.34.
WI Stat § 782.35 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.35 - Warrant, how executed.

782.35  Warrant, how executed. Any officer or person to whom such warrant shall be directed shall execute the same by bringing the prisoner therein named and the person who detained the prisoner, if so commanded by the warrant, before the officer issuing the same; and thereupon the person detaining such prisoner shall make return in like manner and the like proceedings shall be had as if a writ of habeas corpus had been issued in the first instance.History:  1979 c. 32 s. 59; Stats. 1979 s. 782.35; 1993 a. 486.
WI Stat § 782.36 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.36 - Proceedings for unlawful detention.

782.36  Proceedings for unlawful detention. If the person having such prisoner in custody shall be brought before such officer as for a criminal offense the person shall be examined, committed, bailed or discharged by such officer in like manner as in other criminal cases of the like nature.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.36.
WI Stat § 782.37 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.37 - Penalty for refusing papers.

782.37  Penalty for refusing papers. If any officer or other person refuses to deliver a copy of any order, warrant, process or other authority, by which the officer or other person detains any person, to anyone who demands the copy and who tenders the fees for the copy, the officer or other person shall be liable to the person so detained in the sum of $200, to be recovered in an action.History:  1979 c. 32 s. 59; Stats. 1979 s. 782.37; 1993 a. 486; 1997 a. 254.
WI Stat § 782.38 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.38 - Reimprisoning party discharged.

782.38  Reimprisoning party discharged. Any person who shall recommit, imprison or restrain of liberty or cause to be recommitted, imprisoned or restrained of liberty for the same cause except as provided in s. 782.32, any person discharged by a final order upon a writ of habeas corpus or who shall knowingly assist or aid therein, shall be liable to the prisoner in the sum of $1,250 damages, and shall be guilty of a misdemeanor and be punished as provided by s. 782.39.History:  1979 c. 32 ss. 59, 92 (11); 1979 c. 176; Stats. 1979 s. 782.38.
WI Stat § 782.39 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.39 - Concealment of person entitled to writ.

782.39  Concealment of person entitled to writ. Any person who has custody of or power over a person who is entitled to a writ of habeas corpus or for whose relief such a writ has been issued, who shall, with the intent to elude the service of such writ or to avoid the effect thereof, transfer such prisoner to the custody or control of another, or conceal the prisoner or change the place of confinement and every person who assists in so doing shall be fined not more than $1,000 or imprisoned not more than 6 months or both.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.39.
WI Stat § 782.44 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.44 - Prisoner brought for trial or as witness.

782.44  Prisoner brought for trial or as witness. This chapter does not restrain the power of courts to issue a writ of habeas corpus, to bring before them any prisoner for trial or as a witness.History:  1979 c. 32 s. 59; Stats. 1979 s. 782.44.The trial court in determining whether to grant the writ should weigh the interest of the prisoner in presenting testimony in person against the state's interest in maintaining the prisoner's confinement. Eight listed factors are to be considered. State ex rel. Rilla v. Dodge County Circuit Court 76 Wis. 2d 429, 251 N.W.2d 476 (1977).Whether to proceed with civil litigation or to hold it in abeyance while a party is incarcerated depends on the nature of the case, the practical concerns raised by the prisoner's appearance, and the alternative methods available to provide the prisoner with access to the hearing. Schmidt v. Schmidt, 212 Wis. 2d 405, 569 N.W.2d 74 (Ct. App. 1997), 96-3699.A writ of habeas corpus prosequendum does not constitute a detainer subject to the requirements of the Interstate Agreement on Detainers, s. 976.05. State v. Eesley, 225 Wis. 2d 248, 591 N.W.2d 846 (1999), 97-1839.
WI Stat § 782.45 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.45 - Witness fees, inmates of state institutions.

782.45  Witness fees, inmates of state institutions. (1) If an inmate of any public institution is brought into court in response to a writ of habeas corpus or subpoena, the institution shall be reimbursed for the time of the officer conducting the inmate and the actual and necessary traveling expenses incurred in taking the inmate into court on the process and returning the inmate to the institution. The superintendent of the institution shall file with the clerk of the court a statement of the expenses. The clerk shall certify the expenses to the county treasurer, who shall pay to the superintendent of the institution the amount so certified, but in a civil action, such expenses shall be paid by the party requesting the presence of the inmate. (2) In lieu of the procedure under sub. (1) the department of health services and the department of corrections, upon 48 hours' advance notice, shall release to any sheriff having a suitable jail approved by the department of corrections for this purpose any prisoner upon presentation of a writ of habeas corpus to the warden or superintendent of the institution which is detaining the inmate. The sheriff shall be informed in advance where the sheriff may assume custody of the inmate and the sheriff then shall be in charge of the inmate and be responsible for the inmate's custody. During the time that an inmate is absent from the state institution and in the custody of the sheriff the inmate shall be entitled to credit for time served on the existing sentence and such credit under s. 302.11 that he or she was eligible to receive while an inmate of the state institution. The sheriff shall be responsible for segregating the inmate in the jail from other prisoners and the county shall be liable for all expenses attendant to his or her detention including medical care. The inmate while in the custody of the sheriff shall not be permitted to have visitors or to receive mail except as authorized and approved by the warden or superintendent of the state institution which formerly detained the inmate but shall be entitled to confer with counsel during reasonable hours without restriction. After the court has determined that the inmate is no longer needed or required, the sheriff shall promptly return the inmate to the institution to which detained prior to the release to the sheriff for appearance in court.History:  1979 c. 32 s. 59; 1979 c. 110; Stats. 1979 s. 782.45; 1989 a. 31; 1995 a. 27 s. 9126 (19); 2007 a. 20 s. 9121 (6) (a).The state must transport prisoners to federal courts on the same basis as to state courts. Matter of Warden of Wisconsin State Prison, 541 F.2d 177 (1976).The state may not deny an indigent prisoner the right to appear in court to defend a divorce action brought against him unless he pays expenses. Brant v. Powers, 339 F. Supp. 65 (1972).
WI Stat § 782.46 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 782 - Habeas corpus.|782.46 - Habeas corpus not available to prisoners passing through this state.

782.46  Habeas corpus not available to prisoners passing through this state. The officers of all other states, territories and countries are given the right to hold and convey all persons in their custody and charged with or convicted of crime into and through the state of Wisconsin. It shall be a sufficient answer to a writ of habeas corpus sued out in this state by any such person so in custody that the officer holds the person in custody by authority of a warrant or a commitment of such other state, territory or country, a copy of which warrant or commitment shall be attached to the answer of such officer.History:  1979 c. 32 s. 59; 1979 c. 176; Stats. 1979 s. 782.46.
WI Stat § 783.01 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.01 - Mandamus, return to first writ.

783.01  Mandamus, return to first writ. Mandamus is a civil action. The writ of mandamus shall specify the time within which the defendant shall make return thereto. Before such time expires the defendant may move to quash the writ and such motion shall be deemed a motion to dismiss the complaint under s. 802.06 (2).History:  Sup. Ct. Order, 67 Wis. 2d 585, 762 (1975); 1979 c. 32 s. 60; Stats. 1979 s. 783.01.The necessity of resolving by construction an apparent ambiguity in statutes to arrive at the nature of the duty sought to be compelled does not preclude resort to mandamus as a remedy. Morrissette v. DeZonia, 63 Wis. 2d 429, 217 N.W.2d 377 (1974).Mandamus lies to compel an official to perform prescribed duties that are clear and unequivocal when the responsibility to act is imperative and the petitioner shows substantial damage will result from failure to perform the act. Burns v. City of Madison, 92 Wis. 2d 232, 284 N.W.2d 631 (1979).It is an abuse of discretion to compel an action through mandamus when the duty to act is not clear and unequivocal and requires the exercise of discretion. A writ of mandamus to compel town officials to enforce ordinances was properly denied. Vretenar v. Hebron, 144 Wis. 2d 655, 424 N.W.2d 714 (1988).The elements of a writ of mandamus are: 1) a clear legal right; 2) a plain and positive duty; 3) substantial damages or injury should the relief not be granted; and 4) no other adequate remedy at law. Voces de la Frontera, Inc. v. Clarke, 2017 WI 16, 373 Wis. 2d 348, 891 N.W.2d 803, 15-1152.
WI Stat § 783.02 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.02 - Pleadings and proceedings.

783.02  Pleadings and proceedings. Whenever a return is made to the writ the plaintiff may move to strike the return. Otherwise the defenses alleged in the return shall be deemed controverted and like proceedings shall be had as in other civil actions.History:  Sup. Ct. Order, 67 Wis. 2d 585, 762 (1975); 1979 c. 32 s. 60; Stats. 1979 s. 783.02.
WI Stat § 783.03 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.03 - Issues of fact; election cases, trial of.

783.03  Issues of fact; election cases, trial of. (1) Issues of fact in mandamus proceedings instituted in the supreme court shall be tried in the circuit court of the county within which the cause of action arose or in such other county as the supreme court, for cause shown, may order, and the circuit courts may try the issues of fact and may summon a jury for that purpose and prescribe the manner of summoning the jury. (2) In mandamus against a board of canvassers in the supreme court to compel the execution and delivery of a certificate of election to any person claiming to have been elected state senator or member of the assembly, or United States senator or representative in congress, or presidential elector, the court may if deemed necessary inquire into the facts of such election, irrespective of the election returns, and determine who received the greater number of legal votes cast, and the certificate issued in pursuance of such determination shall be the only lawful certificate of election to such office, and any other certificate of election to the same office shall be null and void. Such issue of fact may be tried as hereinbefore provided or according to such rules as the court may prescribe.History:  1977 c. 449; 1979 c. 32 s. 60; Stats. 1979 s. 783.03; 1993 a. 184.
WI Stat § 783.04 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.04 - Damages and costs.

783.04  Damages and costs. If judgment be for the plaintiff, the plaintiff shall recover damages and costs.History:  1979 c. 32 s. 60; 1979 c. 176; Stats. 1979 s. 783.04.
WI Stat § 783.05 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.05 - Recovery to bar another action.

783.05  Recovery to bar another action. A recovery of damages by virtue of this chapter against any party who shall have made a return to a writ of mandamus shall be a bar to any other action against the same party for the making of such return.History:  1979 c. 32 s. 60; Stats. 1979 s. 783.05.
WI Stat § 783.07 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.07 - Fine or imprisonment.

783.07  Fine or imprisonment. Whenever a peremptory mandamus is directed to any public officer, body, board or person commanding the performance of any duty specially enjoined by law and the officer or person or any member of the body or board has, without just excuse, refused or neglected to perform the duty so enjoined, the officer, person or member of the body or board is guilty of a Class H felony.History:  1979 c. 32 s. 60; 1979 c. 176; Stats. 1979 s. 783.07; 1981 c. 20; 1997 a. 283; 2001 a. 109.
WI Stat § 783.09 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.09 - Service and return of.

783.09  Service and return of. Such writ shall be served upon the court and party to whom it shall be directed in the same manner as a writ of mandamus; and a return shall in like manner be made thereto by such court, which may be enforced by attachment.History:  1979 c. 32 s. 60; Stats. 1979 s. 783.09.
WI Stat § 783.10 (2021)
2021 Wisconsin Statutes & Annotations|Chapter 783 - Mandamus and prohibition.|783.10 - Proceedings on adoption of return.

783.10  Proceedings on adoption of return. If the party to whom such writ of prohibition shall have been directed shall, by an instrument in writing to be signed by the party and annexed to such return, adopt the same return and rely upon the matters therein contained as sufficient cause why such court should not be restrained, as mentioned in the writ, said party shall thenceforth be deemed the defendant in such matter; and the person prosecuting such writ may take issue or move to strike the matters so relied upon by such defendant; and the like proceedings shall be had for the trial of issues of law or fact joined between the parties and for the rendering of judgment thereupon as in personal actions.History:  Sup. Ct. Order, 67 Wis. 2d 585, 763 (1975); 1975 c. 218; 1979 c. 32 s. 60; Stats. 1979 s. 783.10.