> 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 § 771 — Punishment upon return of habeas corpus

- **Citation**: N.Y. Judiciary Law § 771
- **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/771](https://www.nysenate.gov/legislation/laws/JUD/771)
- **Canonical URL**: [https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-771](https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-771)
- **Semantic URL**: [https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-771](https://corpuslaw.us/codes/new-york/judiciary-law/article-19/section-771)

## Hierarchy

Division JUD — Judiciary Law > Article 19 — CONTEMPTS

## Text

§ 771.

Punishment upon return of habeas corpus. Where the accused is brought up by virtue of a writ of habeas corpus, he must, after the final order is made, be remanded to the custody of the sheriff, or other officer, to whom the writ was directed. If the final order directs that he be punished by imprisonment, or committed until the payment of a sum of money, he must be so imprisoned or committed, upon his discharge from custody under the mandate, by virtue of which he is held by the sheriff, or other officer.
