What is a "writ of habeas corpus"?
A writ of habeas corpus is a court order that requires a person holding another in custody to bring the detainee before the court to determine the legality of their detention.