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

# N.Y. Judiciary Law § 767 — When habeas corpus may issue

- **Citation**: N.Y. Judiciary Law § 767
- **Node Type**: section
- **Jurisdiction**: New York (state)
- **Code Body**: Laws of New York (NY Senate Open Legislation, as published 2026-10-26) (N.Y. Laws)
- **Official Source**: [https://www.nysenate.gov/legislation/laws/JUD/767](https://www.nysenate.gov/legislation/laws/JUD/767)
- **Canonical URL**: [https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-767](https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-767)
- **Semantic URL**: [https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-767](https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-767)

## Hierarchy

Division JUD — Judiciary Law > Article 19 — CONTEMPTS

## Text

§ 767.

When habeas corpus may issue. If the accused is in the custody of a sheriff, or other officer, by virtue of an execution against his person, or by virtue of a mandate for any other contempt or misconduct, or a commitment on a criminal charge the court, upon proof of the facts, may issue a writ of habeas corpus, directed to the officer, requiring him to bring the accused before it, to answer for the offense charged. The officer to whom the writ is directed, or upon whom it is served, must bring him before the court, and detain him at the place where the court is sitting, until the further order of the court.
