[wp-trac] [WordPress Trac] #35527: Incorrect status code used for generic REST error

WordPress Trac noreply at wordpress.org
Tue Jan 19 17:00:09 UTC 2016


#35527: Incorrect status code used for generic REST error
--------------------------------------+------------------
 Reporter:  danielbachhuber           |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.5
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------

Comment (by rachelbaker):

 @danielbachhuber Shouldn't the WP_Error messages be different.  For the
 `401` error it would be helpful to say something like `rest_unauthorized`
 `Sorry, you are not authenticated correctly. Please re-authenticate and
 try again.`

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


More information about the wp-trac mailing list