A writ issued by a high court to order the production of a person in illegal confinement is

A ) Quo Warranto

B ) Habeas corpus ✅

C ) Certiorari

D ) Mandemus