TWTRAPIErrorCode Constants Reference
Declared in | TWTRAPIErrorCode.h |
---|---|
References | https://dev.twitter.com/docs/error-codes-responses |
TWTRAPIErrorCode
Error codes surfaced by the Twitter API.
Definition
typedef NS_ENUM(NSUInteger, TWTRAPIErrorCode ) {
TWTRAPIErrorCodeCouldNotAuthenticate = 32,
TWTRAPIErrorCodePageNotExist = 34,
TWTRAPIErrorCodeNotAuthorizedForEndpoint = 37,
TWTRAPIErrorCodeInvalidParameter = 44,
TWTRAPIErrorCodeAccountSuspended = 64,
TWTRAPIErrorCodeAPIVersionRetired = 68,
TWTRAPIErrorCodeRateLimitExceeded = 88,
TWTRAPIErrorCodeInvalidOrExpiredToken = 89,
TWTRAPIErrorCodeSSLInvalid = 92,
TWTRAPIErrorCodeOverCapacity = 130,
TWTRAPIErrorCodeInternalError = 131,
TWTRAPIErrorCodeCouldNotAuthenticateTimestampOutOfRange = 135,
TWTRAPIErrorCodeAlreadyFavorited = 139,
TWTRAPIErrorCodeCannotFollowOverLimit = 161,
TWTRAPIErrorCodeNotAuthorizedToSeeStatus = 179,
TWTRAPIErrorCodeOverDailyStatusUpdateLimit = 185,
TWTRAPIErrorCodeStatusIsDuplicate = 187,
TWTRAPIErrorCodeBadAuthenticationData = 215,
TWTRAPIErrorCodeRequestIsAutomated = 226,
TWTRAPIErrorCodeUserMustVerifyLogin = 231,
TWTRAPIErrorCodeChallengeCodeInvalid = 236,
TWTRAPIErrorCodeBadGuestToken = 239,
TWTRAPIErrorCodeLoginRateExceeded = 245,
TWTRAPIErrorCodeEndpointRetired = 251,
TWTRAPIErrorCodeApplicationCannotPerformWriteAction = 261,
TWTRAPIErrorCodeCannotMuteSelf = 271,
TWTRAPIErrorCodeCannotMuteSpecifiedUser = 272,
TWTRAPIErrorCodeDeviceRegisterRateExceeded = 299,
TWTRAPIErrorCodeDeviceCarrierNotSupported = 286,
TWTRAPIErrorCodeAlreadyRetweeted = 327,
TWTRAPIErrorCodeTooManyRequests = 429,
};
Constants
TWTRAPIErrorCodeCouldNotAuthenticate
-
Your call could not be completed as dialed.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodePageNotExist
-
Corresponds with an HTTP 404 - the specified resource was not found.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeNotAuthorizedForEndpoint
-
Not authorized to use this endpoint.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeInvalidParameter
-
Generic API error code for invalid parameter
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeAccountSuspended
-
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
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeAPIVersionRetired
-
Corresponds to a HTTP request to a retired v1-era URL.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeRateLimitExceeded
-
The request limit for this resource has been reached for the current rate limit window.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeInvalidOrExpiredToken
-
The access token used in the request is incorrect or has expired. Used in API v1.1.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeSSLInvalid
-
Only SSL connections are allowed in the API, you should update your request to a secure connection. See how to connect using SSL.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeOverCapacity
-
Corresponds with an HTTP 503 - Twitter is temporarily over capacity.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeInternalError
-
Corresponds with an HTTP 500 - An unknown internal error occurred.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeCouldNotAuthenticateTimestampOutOfRange
-
Corresponds with a HTTP 401 - it means that your oauth_timestamp is either ahead or behind our acceptable range.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeAlreadyFavorited
-
You have already favorited this status.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeCannotFollowOverLimit
-
Corresponds with HTTP 403 — returned when a user cannot follow another user due to some kind of limit.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeNotAuthorizedToSeeStatus
-
Corresponds with HTTP 403 — returned when a Tweet cannot be viewed by the authenticating user, usually due to the Tweet’s author having protected their Tweets.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeOverDailyStatusUpdateLimit
-
Corresponds with HTTP 403 — returned 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 returned when a daily limit is reached, this error will be returned whenever a posting limitation has been reached. Posting allowances have roaming windows of time of unspecified duration.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeStatusIsDuplicate
-
The status text has been Tweeted already by the authenticated account.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeBadAuthenticationData
-
Typically sent with 1.1 responses with HTTP code 400. The method requires authentication but it was not presented or was wholly invalid.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeRequestIsAutomated
-
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 https://support.twitter.com/forms/platform
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeUserMustVerifyLogin
-
Returned as a challenge in xAuth when the user has login verification enabled on their account and needs to be directed to twitter.com to generate a temporary password.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeChallengeCodeInvalid
-
Returned from server in digits sign-in flow if user provides wrong confirmation code
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeBadGuestToken
-
“Bad guest token.” The token has probably expired. Try calling
[TWTRTwitter logInGuestWithCompletion:]
again later.Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeLoginRateExceeded
-
Rate limiting case for /1/sdk/login
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeEndpointRetired
-
Corresponds to a HTTP request to a retired URL.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeApplicationCannotPerformWriteAction
-
Corresponds with HTTP 403 — returned when the application is restricted from POST, PUT, or DELETE actions. See How to appeal application suspension and other disciplinary actions.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeCannotMuteSelf
-
Corresponds with HTTP 403. The authenticated user account cannot mute itself.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeCannotMuteSpecifiedUser
-
Corresponds with HTTP 403. The authenticated user account is not muting the account a call is attempting to unmute.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeDeviceRegisterRateExceeded
-
Rate limiting case for /1.1/device/register.json endpint
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeDeviceCarrierNotSupported
-
Phone’s carrier not suppported and we can not deliver the sms/make the voice call
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeAlreadyRetweeted
-
You have already retweeted this tweet.
Declared In
TWTRAPIErrorCode.h
. TWTRAPIErrorCodeTooManyRequests
-
Returned in API v1.1 when a request cannot be served due to the application’s rate limit having been exhausted for the resource. See Rate Limiting in API v1.1.
Declared In
TWTRAPIErrorCode.h
.
Declared In
TWTRAPIErrorCode.h