Rest API - HTTP Status Codes
You have this server code snippet handling updates:
But clients report they get 409 even when no conflict exists. What is the likely bug?
if resource.version != client_version:
return Response(status=409, body={"error": "Version mismatch"})
else:
update_resource()But clients report they get 409 even when no conflict exists. What is the likely bug?
