Habeas Corpus. Who May Prosecute

Every person imprisoned or otherwise restrained of his liberty, except as is otherwise provided by law, may prosecute a writ of habeas corpus to obtain relief from such imprisonment or restraint if it prove to be unlawful.

R. S., ch. 65, sec. 1.