/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-custom-message-1594e8e7593b-custom-message-s0612-c0000.md
Custom Message - hono-docs
Custom Message Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt custom message Summary For basic t...
Custom Message
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#custom-message
Summary
For basic text responses, just set the error message. ts twoslash import { HTTPException } from 'hono/http-exception' throw new HTTPException(401, { message: 'Unauthorized' })
Content
For basic text responses, just set the error message.
import { HTTPException } from 'hono/http-exception'
throw new HTTPException(401, { message: 'Unauthorized' })