[wp-trac] [WordPress Trac] #47393: Comment form submission with invalid fields incorrectly returns 200 OK response

WordPress Trac noreply at wordpress.org
Mon May 27 04:17:13 UTC 2019


#47393: Comment form submission with invalid fields incorrectly returns 200 OK
response
--------------------------+------------------------------
 Reporter:  westonruter   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by miqrogroove):

 From what I know of this, REST errors are conveyed within the API's
 response entity.  The HTTP status code reflects success or failure of
 handling the HTTP request.  Departing from those standards would not seem
 to be of much benefit, but not impossible either.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47393#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list