this is backwards, the logic is:

```js
if(response_code === 200) {
  add_error
} else if (response_code === 404) {
  dont_add_error
} else {
  handle_unknown_state
}
```

The idea is if the resource, being the value you are checking for, does not exist then the resource is unique and the validation does not fail.