habeas corpus — court action challenging unlawful detention