habeas corpus
noun [ U ]
LAW ukusthe right of someone who is in prison to appear in court so that a judge can decide whether that person is being kept in prison legally:
The new legislation would restore habeas corpus rights to all detainees in U.S. custody.
habeas corpus appeals/petitions/proceedings