Returns a welcome payload.
{ "message": "Hello from Hono!", "docs": "./docs/README.md" }Liveness probe for platforms and smoke tests.
{ "status": "ok" }Demonstrates @hono/zod-validator on JSON bodies.
Request:
{ "message": "ping" }Response:
{ "echo": "ping" }Invalid bodies return 400 from the validator.
Unhandled errors go through src/middleware/error-handler.ts and return:
{ "error": { "code": "INTERNAL_ERROR", "message": "..." } }Throw AppError from src/lib/errors.ts for intentional HTTP failures with a custom code and status.