twitter
Twitter/X API Error Codes
Numeric error codes returned in the code field of error objects from the Twitter (X) REST API v1.1, alongside an HTTP status. Surfaced by client libraries such as Tweepy, twitter4j, and twurl whenever a request fails.
24 codes
references developer.twitter.com/en/support/twitter-api/error-troubleshootingweb.archive.org/web/2023/https://developer.twitter.com/en/docs/twitter-ids
· All codes 24 codes
- 32 Could not authenticate you The request could not be authenticated, typically because the OAuth credentials are missing, malformed, or do not match the request signature.
- 34 Sorry, that page does not exist The requested resource (user, Tweet, or endpoint) does not exist, corresponding to a 404 Not Found response.
- 64 Your account is suspended and is not permitted to access this feature The authenticating account has been suspended and cannot use the API.
- 68 The Twitter REST API v1 is no longer active The request targeted a v1.0 endpoint that has been retired; migrate to the current v1.1 or v2 API.
- 87 Client not privileged to create this resource The authenticating application or user does not have the required access level to create the requested resource.
- 88 Rate limit exceeded The app or user has made too many requests in the current 15-minute window; wait for the window to reset before retrying.
- 89 Invalid or expired token The OAuth access token is invalid, has expired, or was revoked by the user; re-authenticate to obtain a new token.
- 92 SSL is required The request must be made over HTTPS; plain HTTP requests to the API are rejected.
- 130 Over capacity Twitter is temporarily over capacity; the request should be retried later.
- 131 Internal error An unspecified internal server error occurred while processing the request; safe to retry.
- 135 Could not authenticate you (timestamp out of range) The OAuth timestamp/nonce validation failed, often because the client's clock is out of sync with Twitter's servers.
- 136 You have been blocked from viewing this user's profile The authenticating user has been blocked by the target account and cannot view its data.
- 161 You are unable to follow more people at this time The account has hit Twitter's follow-rate or follow-limit restriction.
- 179 Sorry, you are not authorized to see this status The requested Tweet belongs to a protected account that the authenticating user does not follow.
- 185 User is over daily status update limit The account has reached its daily limit for posting Tweets.
- 186 Tweet needs to be a bit shorter The Tweet text exceeds the maximum allowed character count.
- 187 Status is a duplicate The exact same Tweet text was already posted recently by this account and was rejected as a duplicate.
- 215 Bad Authentication data The request is missing required OAuth authentication parameters.
- 226 This request looks like it might be automated The request was flagged by Twitter's spam-detection systems and blocked.
- 261 Application cannot perform write actions The application's access level is read-only and cannot perform actions like posting or following.
- 271 You can't mute yourself The authenticating user attempted to mute their own account.
- 272 You are not muting the specified user An unmute request was made for a user who is not currently muted.
- 326 Account is temporarily locked The account has been temporarily locked for suspicious activity and must be unlocked via the Twitter web or app UI before the API can be used.
- 354 The text of your direct message is over the character limit A direct message exceeds the maximum allowed length.