A writ used as a means to bring a person before the court to determine whether he/she is being detained unlawfully.