Who may prosecute writ.

Every person restrained of his liberty under any pretense whatever, may prosecute a writ of habeas corpus to inquire into the cause of the restraint, and shall be delivered therefrom when illegal.

[Code 1881 ยง 666; 1877 p 138 ยง 669; 1869 p 156 ยง 606; 1854 p 212 ยง 434; RRS ยง 1063.]