In Wang v. Canada (Ont CA, 2018) the court states exceptions to the application of the common law writ of habeas corpus:
[17] As referenced in May, there are two exceptions to the availability of habeas corpus. One is where a statute confers jurisdiction on a court of appeal to correct the errors of a lower court and to release the affected person, if necessary. The other is where a legislator has put in place a complete, comprehensive and expert procedure for review of an administrative decision affecting a person’s liberty.
The author has waived all copyright and related or neighboring rights to this Isthatlegal.ca webpage.