Habeas Corpus (Latin for 'you may have the body') is a writ that protects individual freedom against illegal detention. It compels authorities to produce a detained person before court to determine legality of detention. Mandamus directs official duty, Quo Warranto challenges position holding, and Certiorari quashes lower court orders.