Choose one: Check (1) if you are claiming superior rights under a court order. This guide includes forms and instructions for a letter and affidavit to request that the court register an outofstate custody order in Texas.In child custody cases, parents or guardians can use the writ of habeas corpus to contest the legality of custody arrangements. In Texas, grounds for a writ of habeas corpus in child custody cases can include concerns about the child's safety, wellbeing, or living conditions. 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. This legal action demands that a person who has your child must appear in court with the child and justify their actions. The short answer is no. Federal Habeas Corpus for a person in state custody falls under 28 USC Sec. 2254. You are going to need to get a lawyer. You can file for habeas corpus to bring the child before the court to adjudicate the question of paternity and visitation rights.