Twitter Error Codes

Error Codes

In addition to descriptive error text, error messages contain machine-parseable codes. While the text for an error message may change, the codes will stay the same. The following table describes the codes which may appear when working with the API:

Code Text Description
32 Could not authenticate you Your call could not be completed as dialed.
34 Sorry, that page does not exist Corresponds with an HTTP 404 – the specified resource was not found.
64 Your account is suspended and is not permitted to access this feature Corresponds with an HTTP 403 — the access token being used belongs to a suspended user and they can’t complete the action you’re trying to take
68 The Twitter REST API v1 is no longer active. Please migrate to API v1.1. Corresponds to a HTTP request to a retired v1-era URL.
88 Rate limit exceeded The request limit for this resource has been reached for the current rate limit window.
89 Invalid or expired token The access token used in the request is incorrect or has expired. Used in API v1.1
92 SSL is required Only SSL connections are allowed in the API, you should update your request to a secure connection. See how to connect using SSL
130 Over capacity Corresponds with an HTTP 503 – Twitter is temporarily over capacity.
131 Internal error Corresponds with an HTTP 500 – An unknown internal error occurred.
135 Could not authenticate you Corresponds with a HTTP 401 – it means that your oauth_timestamp is either ahead or behind our acceptable range
161 You are unable to follow more people at this time Corresponds with HTTP 403 — thrown when a user cannot follow another user due to some kind of limit
179 Sorry, you are not authorized to see this status Corresponds with HTTP 403 — thrown when a Tweet cannot be viewed by the authenticating user, usually due to the tweet’s author having protected their tweets.
185 User is over daily status update limit Corresponds with HTTP 403 — thrown when a tweet cannot be posted due to the user having no allowance remaining to post. Despite the text in the error message indicating that this error is only thrown when a daily limit is reached, this error will be thrown whenever a posting limitation has been reached. Posting allowances have roaming windows of time of unspecified duration.
187 Status is a duplicate The status text has been Tweeted already by the authenticated account.
215 Bad authentication data Typically sent with 1.1 responses with HTTP code 400. The method requires authentication but it was not presented or was wholly invalid.
226 This request looks like it might be automated. To protect our users from spam and other malicious activity, we can’t complete this action right now. We constantly monitor and adjust our filters to block spam and malicious activity on the Twitter platform. These systems are tuned in real-time. If you get this response our systems have flagged the Tweet or DM as possibly fitting this profile. If you feel that the Tweet or DM you attempted to create was flagged in error, please report the details around that to us by filing a ticket at
231 User must verify login Returned as a challenge in xAuth when the user has login verification enabled on their account and needs to be directed to to generate a temporary password.
251 This endpoint has been retired and should not be used. Corresponds to a HTTP request to a retired URL.
261 Application cannot perform write actions. Corresponds with HTTP 403 — thrown when the application is restricted from POST, PUT, or DELETE actions. See How to appeal application suspension and other disciplinary actions.
271 You can’t mute yourself. Corresponds with HTTP 403. The authenticated user account cannot mute itself.
272 You are not muting the specified user. Corresponds with HTTP 403. The authenticated user account is not muting the account a call is attempting to unmute.
354 The text of your direct message is over the max character limit. Corresponds with HTTP 403. The message size exceeds the number of characters permitted in a direct message.

Leave a Reply

Your email address will not be published. Required fields are marked *