A habeas corpus petition is an appeal filed by a defendant who is currently incarcerated and seeks relief from unlawful detention.