An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. Originally, habeas corpus was a remedy to prevent the government from holding a citizen illegally.The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. A Writ of Habeas Corpus (Latin for "that you have the body") may be filed on behalf of a person who is unlawfully imprisoned. To initiate a state writ of habeas corpus in Texas, a person must first file a petition with the appropriate court. The required application for a person currently incarcerated in TDCJ to file for a writ of habeas corpus under Texas Code of Criminal Procedure, Article 11.07. The following forms are available for downloading, printing and completing. The petition must be filed in the county or district where the defendant was originally convicted. The First Court of Appeals was established in 1892 and is located in the historical 1910 Courthouse in downtown Houston. In general, Texas has very few official legal forms.