The writ of habeas corpus primarily acts as a writ of inquiry, issued to test the reasons or grounds for restraint and detention. A writ of habeas corpus is a legal order that requires a person who is holding another person in custody to bring the detainee before a court.The State of Nevada is an interested party in proceedings for a writ of habeas corpus. The petition for writ of habeas corpus form is designed to help you prepare a petition seeking relief pursuant to 28 U.S.C. § 2254. A writ of habeas corpus refers to (A) a person's right to know the reasons for his or her imprisonment (B) a person's right to not be charged for an action. 5. The privilege of the writ of habeas corpus shall not be suspended, unless, when in cases of rebellion or invasion, the public safety. 2 The Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of. Rebellion or Invasion the public Safety may re- quire it. The petition must be typed or neatly written, and you must sign and date it under penalty of perjury. A false statement may lead to prosecution.