/Knowledge/sources/honojs__hono/llms-full/context-status--b0c5a2d7a15a.md
Context: status() - hono-docs
Context: status() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt status Summary You can set an HTTP s...
Context: status()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#status
Summary
You can set an HTTP status code with c.status(). The default is 200. You don't have to use c.status() if the code is 200. ```ts twoslash import { Hono } from 'hono' const app = new Hono() // ---cut--- app.post('/posts', (c) => {...
Content
You can set an HTTP status code with c.status(). The default is 200. You don't have to use c.status() if the code is 200.
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
app.post('/posts', (c) => {
// Set HTTP status code
c.status(201)
return c.text('Your post is created!')
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#status",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Context > status()",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 552,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Context: status()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}