Claude Structured Outputs Refusal Handling: Stop Parsing HTTP 200 Refusals
Claude structured outputs refusal handling belongs before domain deserialization. A successful HTTP exchange only says the API accepted and processed the request; it does not guarantee that the text block contains the JSON object my application expects. Claude can return an HTTP 200 response with stop_reason: "refusal" , and a response stopped by max_tokens can contain incomplete JSON. If I…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.