[wp-trac] [WordPress Trac] #45851: Http Status Code are too much generic

WordPress Trac noreply at wordpress.org
Mon Jan 7 13:11:18 UTC 2019


#45851: Http Status Code are too much generic
--------------------------+-----------------------------
 Reporter:  astronati     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0.2
 Severity:  blocker       |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The status code should be used in the appropriate way.

 https://github.com/WordPress/WordPress/blob/6e3adbfe8ca720506ecdbe45c6c5571b545d3f60
 /wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php#L431

 The link above shows when the status code does not match the error. Here
 we should expect to see 409 and not 400

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45851>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list