Wordpress/tests
Rachel Baker 59c31d2d74 REST API: Correct HTTP status code in error for requests to create a duplicate term.
The 409 error code is intended for situations where it is expected that the user will resolve the conflict and resubmit the same request. We use 400 error codes for other routes when a duplicate request is made. The 400 status code tells the user they need to modify their request for it to be successful.

Props shooper.
Fixes #42781. See #41370.

git-svn-id: https://develop.svn.wordpress.org/trunk@42354 602fd350-edb4-49c9-b593-d223f7449a82
2017-12-03 19:08:23 +00:00
..
phpunit REST API: Correct HTTP status code in error for requests to create a duplicate term. 2017-12-03 19:08:23 +00:00
qunit REST API: Add `permalink_structure` to the index endpoint. 2017-11-10 06:10:23 +00:00