Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
Just commenting here that this will be kept open and used to focus on reworking our HTTP status codes we return to follow the more standardized approach.
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
Overview of the Issue
When calling the API to POST a prepared query, it returns 500 if it already exists. The correct would be to return 409 Conflict.
The body message makes it clear that the query already has been created but the 500 return code is less than ideal.
Not only it's semantically wrong but it also makes it harder to reason with in automated logic as 5xx is reserved for Server Errors.
Reproduction Steps