Power to issue writ.
42 Pa.C.S. § 6502
in effect(a) General rule.--Any judge of a court of record may issue the writ of habeas corpus to inquire into the cause of detention of any person or for any other lawful purpose.
(b) Venue.--The venue of matters brought under this chapter shall be as prescribed by general rule.
Source: Open US Law by Vaquill AI (CC BY 4.0)URL: https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42Fetched: 10/16/2026
