Skip to content

error

function error(
status,
message,
extra?,
headers?
): Response;

Defined in: src/server/http.ts:27

A JSON error response: { error: message, ...extra }.

Parameter Type
status number
message string
extra? Record<string, unknown>
headers? Record<string, string>

Response