A writ of habeas corpus allows you to make arguments that you can't make in an appeal. It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis.Prisoners can sometimes use a petition for writ of habeas corpus to challenge the legality of a criminal conviction or inhumane prison conditions. Habeas corpus means demand of body. By petitioning for a writ, you are asking the court to determine whether your conviction or sentence is illegal. 1o All resident plaintiffs who are unable to prosecute their suits and pay costs and expenses are included in the terms of the statute. How to File Habeas Corpus and Compassionate Release David is a law school graduate and former practicing attorney. The "Great Writ" of habeas corpus is a fundamental right in the Constitution that protects against unlawful and indefinite imprisonment. States Courts, 33 F.R.D. 363 (1964). 4. The privilege of the writ of habeas corpus shall not be suspended except in cases of rebellion or invasion when the public safety may require it.