Title: 404 error with custom methods
Last modified: August 21, 2016

---

# 404 error with custom methods

 *  [rsanchez1123](https://wordpress.org/support/users/rsanchez1123/)
 * (@rsanchez1123)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/404-error-with-custom-methods/)
 * This issue is related to:
 * [http://wordpress.org/support/topic/api-throwing-404-with-user-friendly-permalinks?replies=2](http://wordpress.org/support/topic/api-throwing-404-with-user-friendly-permalinks?replies=2)
 * I have custom controllers with custom methods. I register them using filters 
   json_api_controllers and json_api_[controller]_controller_path, so I can call
   my API methods like this:
 * /api/[controller]/[method]
 * This will give me a 404 error intermittently, as in it will work for several 
   hundred api calls in a row, but then it will hit a streak of 10 calls or so where
   the API returns a 404 error.
 * Has anyone run into a problem like this?
 * [http://wordpress.org/plugins/json-api/](http://wordpress.org/plugins/json-api/)

The topic ‘404 error with custom methods’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rsanchez1123](https://wordpress.org/support/users/rsanchez1123/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/404-error-with-custom-methods/)
 * Status: not resolved