WordPress/wp-includes
danielbachhuber 699bf044ef 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.
Merges [42354] to the 5.0 branch.
Fixes #42781. See #41370.

Built from https://develop.svn.wordpress.org/branches/5.0@43756


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-18 20:32:27 +00:00
..
2016-12-03 03:30:42 +00:00
2017-01-11 01:23:41 +00:00
2017-10-16 22:29:48 +00:00
2018-07-24 17:08:26 +00:00
2016-12-03 04:16:38 +00:00
2016-12-03 03:51:41 +00:00