Title: Issue with using REST API &#8211; 402 Error
Last modified: September 1, 2016

---

# Issue with using REST API – 402 Error

 *  [caman9119](https://wordpress.org/support/users/caman9119/)
 * (@caman9119)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/issue-with-using-rest-api-402-error/)
 * Hey there,
 * I have all plugins disabled except for Jetpack, when I hit the API endpoint for
   my site I get the following error – `{"error":"jetpack_error","message":"The 
   Jetpack site is inaccessible or returned an error: transport error - HTTP status
   code was not 200 (402) [-32300]"}`
 * Can reproduce here: [https://public-api.wordpress.com/rest/v1.1/sites/calebjones.me](https://public-api.wordpress.com/rest/v1.1/sites/calebjones.me)
 * Site URL: [http://www.calebjones.me](http://www.calebjones.me)
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 9 months ago](https://wordpress.org/support/topic/issue-with-using-rest-api-402-error/#post-7602514)
 * That error is returned by your site when WordPress.com tries to query your site
   for data.
 * To find out more about what could create that error, could you add the following
   to your site’s wp-config.php file?
 *     ```
       define('WP_DEBUG', true);
   
       if ( WP_DEBUG ) {
   
               @error_reporting( E_ALL );
               @ini_set( 'log_errors', true );
               @ini_set( 'log_errors_max_len', '0' );
   
               define( 'WP_DEBUG_LOG', true );
               define('WP_DEBUG_DISPLAY', false);
               define( 'CONCATENATE_SCRIPTS', false );
               define( 'SAVEQUERIES', true );
   
       }
       ```
   
 * Once you’ve done so, try loading the API again, and then check the `wp-content/
   debug.log` file for errors. You can paste the results here.
 * You can then replace `define('WP_DEBUG', true);` by `define('WP_DEBUG', false);`
   in the code above.
 * If no errors are returned in your logs, it’s most likely that the error is returned
   by your hosting provider; it could be caused by security rules or a firewall 
   for example.
 * Let me know how it goes.

Viewing 1 replies (of 1 total)

The topic ‘Issue with using REST API – 402 Error’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/issue-with-using-rest-api-402-error/#post-7602514)
 * Status: not resolved