> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 42 Pa.C.S. § 6502 — Power to issue writ.

- **Citation**: 42 Pa.C.S. § 6502
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-42/chapter-65/section-6502](https://corpuslaw.us/codes/pennsylvania/title-42/chapter-65/section-6502)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-42/chapter-65/section-6502](https://corpuslaw.us/codes/pennsylvania/title-42/chapter-65/section-6502)

## Hierarchy

Title 42 > Chapter 65

## Text

(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.
