Render a fence refusal as the JSON response the taxonomy specifies.
For the surfaces that answer with a Response instead of throwing — a Worker
router, or a Durable Object route whose own catch would re-map a thrown
status. Built from the ERROR so the body a router writes and the body
doErrorResponse writes for the same refusal cannot drift apart.
Render a fence refusal as the JSON response the taxonomy specifies.
For the surfaces that answer with a Response instead of throwing — a Worker router, or a Durable Object route whose own catch would re-map a thrown status. Built from the ERROR so the body a router writes and the body doErrorResponse writes for the same refusal cannot drift apart.