Related Rule
Japan
Practice Relating to Rule 99. Deprivation of Liberty
Section E. Decision on the lawfulness of deprivation of liberty
Japan’s Habeas Corpus Act (1948) states: “Any person whose liberty of person is under restraint without due process of law may apply for relief pursuant to the provisions of this Act.” 
Japan, Habeas Corpus Act, 1948, Article 2.