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

# S.C. Code Ann. § 17-17-40 — Authority of any two magistrates to grant writs of habeas corpus.

- **Citation**: S.C. Code Ann. § 17-17-40
- **Node Type**: section
- **Jurisdiction**: South Carolina (state)
- **Code Body**: Code of Laws of South Carolina (Aug. 2026 snapshot) (S.C. Code Ann.)
- **Official Source**: [https://www.scstatehouse.gov/code/t17c017.php](https://www.scstatehouse.gov/code/t17c017.php)
- **Canonical URL**: [https://corpuslaw.us/codes/south-carolina/title-17/chapter-17/section-17-17-40](https://corpuslaw.us/codes/south-carolina/title-17/chapter-17/section-17-17-40)
- **Semantic URL**: [https://corpuslaw.us/codes/south-carolina/title-17/chapter-17/section-17-17-40](https://corpuslaw.us/codes/south-carolina/title-17/chapter-17/section-17-17-40)

## Hierarchy

Title 17 > Chapter 17

## Text

Any two magistrates shall grant the writ of habeas corpus as fully, effectually and lawfully as may any judge of the court of common pleas and general sessions or justice of the Supreme Court of this State, except in cases of felony the punishment for which is death or imprisonment for life and except in changing the custody of any child, in which cases magistrates shall have no jurisdiction in applications for habeas corpus.
