Runtime Behavior
Routa v0 runs on Hono.
Request Handling
Section titled “Request Handling”- route params, query, headers, cookies, and body are parsed through declared Zod schemas
- JSON request bodies require a JSON content type
- invalid JSON bodies produce an error response
GETroutes cannot declare request bodies- unsupported
Acceptheaders can produce406 Not Acceptable - unsupported body content type can produce
415 Unsupported Media Type - paths with unsupported methods produce
405 Method Not Allowedwith anAllowheader
Responses
Section titled “Responses”Handlers and middleware return named results:
return { type: "success", data };Routa validates that the returned type exists in the route response map and serializes the matching HTTP response.
Bodyless status codes are emitted without JSON response bodies.