[wp-trac] [WordPress Trac] #39830: Unable to detect REST/rest_no_route

WordPress Trac noreply at wordpress.org
Fri Feb 10 09:02:21 UTC 2017


#39830: Unable to detect REST/rest_no_route
--------------------------+-----------------------------
 Reporter:  szepe.viktor  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.7.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 AFAIK dispatch() in WP_REST_Server replies `rest_no_route` with HTTP
 status code 404 '''on its own'''

 There is no way to detect a HTTP/404 which is elemental for my WAF
 https://github.com/szepeviktor/wordpress-fail2ban/blob/master/mu-plugin
 /wp-fail2ban-mu-instant.php#L138-L140

 Please advise.

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


More information about the wp-trac mailing list