147. Prerogative nature of writ.

The writ of habeas corpus for release is a prerogative writ, that is to say it is an extraordinary remedy, which is issued upon cause shown in cases where the ordinary legal remedies are inapplicable or inadequate1.

The writ is a writ of right2 and is granted as of right3. Both at common law and by statute4