Search code examples
androidjtwitter

Android Jtwitter forgidden exception


Android I am using jTwitter

  1. Twitter my_twiter = new Twitter("my_user_name","my_pass");
  2. my_twiter.setStatus("hello world");

line 2 throws

winterwell.jtwitter.TwitterException$E403: Forbidden http://twitter.com/statuses/update.json (my_user_name)

what does that mean ??


Solution

  • 403 Forbidden: The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits.

    Statuses over 140 characters will also cause a 403. But since you are just doing "hello world" that shouldn't be the case. The response body will contain a detailed error message.