WRIT OF HABEAS CORPUS Detained person’s attorney uses this writ to force police to bring the person to court and challenge legality of detention.