logoalt Hacker News

jw1224yesterday at 8:05 PM2 repliesview on HN

> When Claude Fable 5 declines a request, the Messages API returns stop_reason: "refusal" as a successful HTTP 200 response, not an error

This is precisely what comes to mind when I think “successful”.


Replies

speedgooseyesterday at 8:11 PM

A missed opportunity to use the HTTP 451 status code.

https://en.wikipedia.org/wiki/HTTP_451

show 1 reply
apitmanyesterday at 8:39 PM

Is refusal something that can happen mid-stream, after status and headers have been received? I haven't looked at the API