[wp-trac] [WordPress Trac] #42781: HTTP Status code should be a 400 instead of a 409 when attempting to add a term (by slug) that already exist
WordPress Trac
noreply at wordpress.org
Sun Dec 3 18:12:13 UTC 2017
#42781: HTTP Status code should be a 400 instead of a 409 when attempting to add a
term (by slug) that already exist
--------------------------+-----------------------------
Reporter: shooper | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.9
Severity: normal | Keywords:
Focuses: rest-api |
--------------------------+-----------------------------
The patch to address #41370, which released in WP 4.9 changed the HTTP
status code returned when a term already exists to 409. It should have
been an HTTP 400 for consistency with the rest of the endpoints.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42781>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list