Indiana Code - Civil Law and Procedure - Title 34, Section 34-29-3-1
Motion for discharge; habeas corpus
Sec. 1. A person arrested contrary to this article shall be immediately discharged, on motion before the court issuing the process, or on habeas corpus.