Reject a counter operation if value is going negative

Currently if a counter operation is applied on a value which would make it go negative the value of the key is set to 0

Is there a way with which instead of setting the value to 0, couchbase simply rejects the operation?

There’s unfortunately not a way to do that (at least, that I can think of), but if it’s known zero and you get a zero after decrement (as the result is returned), you could ‘logically’ look at that as a reject. Thinking through this a bit further, if ‘1’ were considered logically a zero, you could just map actual 0 to a ‘reject’. It sounds a bit funny I’m sure, but it would be efficient and work.