He was Judge of the Sixth Judicial District from 1846 to 1847. He was a justice of the New York Supreme Court from 1847 to 1859, and was ex officio a judge of the New York Court of Appeals in 1851 and 1859. He was a Commissioner of Appeals from 1870 to 1875.
He was buried at the Woodlawn Cemetery in Elmira.
- United States Congress. "Hiram Gray (id: G000397)". Biographical Directory of the United States Congress.
- The New York Civil List compiled by Franklin Benjamin Hough (pages 351 and 356; Weed, Parsons and Co., 1858)
-  Court of Appeals judges
|U.S. House of Representatives|
|Preceded by |
| Member of the U.S. House of Representatives |
from New York's 22nd congressional district