Chapter 6, 1956 edition, text as in the 1956 edition
45 . The Supreme Court or any Judge thereof, Whether at Colombo or elsewhere, shall be and is hereby authorized to grant and issue mandates in the nature of writs of habeas corpus to bring up before such court or Judge -
(a) the body of any person to be dealt with according to law;
(b) the body of any person illegally or improperly detained in public or private custody;
and to discharge or remand any person so brought up, or otherwise deal with such person according to law:
Provided that it shall be lawful for such court or Judge, to require the body of such person to be brought up in the nearest District Court, Court of Requests, or Magistrate's Court, and to direct the District Judge, Commissioner, or Magistrate of such court to inquire into and report upon the cause of the alleged imprisonment or detention to such court or Judge, and to make such provision for the interim custody of the body produced as to such court or Judge shall seem right; and such court or Judge shall, upon the receipt of such report, make order to discharge or remand the person so alleged to be imprisoned or detained, or otherwise deal with such person according to law; and the said District Court, Court of Requests, or Magistrate's Court shall conform to, and carry into immediate effect, the order so pronounced or made by such court or Judge in the premises. *Supreme Court may issue writs of habeas corpus.*