I have started looking into another project that I am supposed to add some features to. This project is using 409 Conflict to convey that a unique constraint has failed. In past I have used 400 BadRequest and now 422 Unprocessable entity to indicate failures of unique constraint. I am not sure if use of 409 Conflict for this purpose is right?
I have started looking into another project that I am supposed to add some features to. This project is using
409 Conflictto convey that a unique constraint has failed. In past I have used400 BadRequestand now422 Unprocessable entityto indicate failures of unique constraint. I am not sure if use of409 Conflictfor this purpose is right?