Habeas Corpus Act 1816

The Habeas Corpus Act 1816 (c.100 56 Geo 3) was an Act of the Parliament of the United Kingdom that modified the law on "habeas corpus" to remove the rule against controverting the return in non-criminal cases.
Historically, the rules around factual inquiries in decisions around petitions for "habeas corpus" had been based on the "Opinion on the Writ of Habeas Corpus", a House of Lords disquisition by Wilmot CJ in 1758, which effectively nullified a bill for passage of "An Act for giving a more speedy Remedy to the Subject upon the Writ of Habeas Corpus". It made the argument that the writ allowed the judge only to ask for an explanation of why the prisoner was jailed known as the 'return'), not to debate whether that explanation was justified or to examine the facts of it ('controvert' it), which was the role of the jury. 
There were several ways around that. One was "confessing and avoiding", introducing and discussing contradicting the facts reported by the jailer, but simply invalidating them. A second method was "proceeding by rule and motion"; by making a ruling that was independent of the return, the judges did not technically argue with the return or contradict it, but the same outcome was reached as if they had done so. That caused some concern because of feelings that it restricted the ability of the courts to deal with arguments over facts from the applicant for the writ. A bill was introduced in 1758 to resolve that but was rejected; a second bill was introduced in 1816 and passed, coming into law as the Habeas Corpus Act 1816. It explicitly allows judges to question and debate the facts laid out in a return, but it deliberately does not extend to criminal cases for fear that it could lead to a full trial being conducted just on the petition and return. It, however, seemingly applies if the petitioner or subject has been arrested for a criminal matter but not charged.
Judith Farbey, a barrister and commentator on the law of "habeas corpus", argues that the law is pointless; almost anything that could be justified under the 1816 Act could also be justified by classifying the fact that the judge wants to discuss as a "jurisdictional fact", another way of permitting debate. Paul D. Halliday, a professor of history at the University of Virginia agreed, arguing that "all these usages had been available at common law, and there is reason to question the status this act has traditionally received". The end result, though, was that "the rule against controverting the return may safely be regarded as a harmless relic of the past". Outside United Kingdom, legislation in various British territories and dominions ensured that it was enshrined in much Commonwealth law, including that of Singapore, Australia and New Zealand. Outside tho jurisdictions in which it had a direct effect, it was still influential and was "soon duplicated in most American states".