Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Should we return 409 instead of 200 for POST if specified id already exists ? #140
As per Kinto/kinto.js#14 I tried to raise a 409 on a POST.
The behavior is not the one I was expected:
As you can see when I try a POST on an existing ID, I get the existing record with a 200.
I was expecting getting a 409 Conflict error with the stored record in the detail field.
This was already discussed a while ago, and we agreed on returning 200 in this case. Discussion can be reopened, but this is definitely not a bug.
As the Cliquet docs say, a