サイトのトップへ戻る

Twitter 開発者 ドキュメント日本語訳

TWTRAPIErrorCode 定数

Twitter APIによって提示されるエラーコード。

宣言位置 TWTRAPIErrorCode.h
リファレンス https://dev.twitter.com/docs/error-codes-responses


TWTRAPIErrorCode



定義

typedef NS_ENUM(NSUInteger, TWTRAPIErrorCode ) {
    TWTRAPIErrorCodeCouldNotAuthenticate = 32,
    TWTRAPIErrorCodePageNotExist = 34,
    TWTRAPIErrorCodeNotAuthorizedForEndpoint = 37,
    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,
    TWTRAPIErrorCodeBadGuestToken = 239,
    TWTRAPIErrorCodeEndpointRetired = 251,
    TWTRAPIErrorCodeApplicationCannotPerformWriteAction = 261,
    TWTRAPIErrorCodeCannotMuteSelf = 271,
    TWTRAPIErrorCodeCannotMuteSpecifiedUser = 272,
    TWTRAPIErrorCodeAlreadyRetweeted = 327,
    TWTRAPIErrorCodeTooManyRequests = 429,
};


Constants

TWTRAPIErrorCodeCouldNotAuthenticate

Your call could not be completed as dialed.

TWTRAPIErrorCodePageNotExist

HTTP 404 エラーに該当します- 指定されたリソースが見つかりませんでした。

TWTRAPIErrorCodeNotAuthorizedForEndpoint

このエンドポイントを使うための認証がなされていません。

TWTRAPIErrorCodeAccountSuspended

HTTP 403エラーに該当します — 使用されているトークンはアカウントが凍結されたユーザーのものです。このユーザーでは、あなたが意図した処理は行えません。

TWTRAPIErrorCodeAPIVersionRetired

既に廃止されたバージョン1時代のURLへのHTTPリクエストです。

TWTRAPIErrorCodeRateLimitExceeded

このリソースへのリクエスト制限の上限に達しました。

TWTRAPIErrorCodeInvalidOrExpiredToken

このリクエストに使用されているアクセストークンは、誤りがあるか有効期限切れしています。API v1.1が使用されています。

TWTRAPIErrorCodeSSLInvalid

このAPIはSSL接続のみが許可されています。リクエストを安全な接続に更新してください。詳細は SSLを使って接続する方法を参照してください。

TWTRAPIErrorCodeOverCapacity

HTTP 503エラーに該当します - Twitter は一時的に性能限界を超えました。

TWTRAPIErrorCodeInternalError

HTTP 500エラーに該当します - 不明な内部エラーが発生しました。

TWTRAPIErrorCodeCouldNotAuthenticateTimestampOutOfRange

HTTP 401エラーに該当します - oauthのタイムスタンプ(oauth_timestamp )が、許容期間以後もしくは許容期間以前になっています。

TWTRAPIErrorCodeAlreadyFavorited

このステータスは既にお気に入りに登録されています。

TWTRAPIErrorCodeCannotFollowOverLimit

HTTP 403エラーに該当します — 何らかの制限によって他のユーザーのフォローができなかった場合に返ってくるエラーです。

TWTRAPIErrorCodeNotAuthorizedToSeeStatus

HTTP 403エラーに該当します — 認証しているユーザーがツイートを参照できなかった場合に返ってくるエラーです。大抵はツイート主がツイートに制限をかけていることが原因です。

TWTRAPIErrorCodeOverDailyStatusUpdateLimit

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.

TWTRAPIErrorCodeStatusIsDuplicate

この内容の文章は、このアカウントで既にツイートされています。

TWTRAPIErrorCodeBadAuthenticationData

Typically sent with 1.1 responses with HTTP code 400.このメソッドは認証が必要ですが、認証がされていないか無効です。

TWTRAPIErrorCodeRequestIsAutomated

我々は常にTwitter プラットフォームを監視し、スパム行為や悪意ある活動を防ぐためのフィルターの調整を行っています。このシステムはリアルタイムに調整されています。 あなたがこの応答を受け取った場合、 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

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.

TWTRAPIErrorCodeBadGuestToken

“不正なゲストトークン。” このトークンはおそらく期限が切れています。後でもう一度 [Twitter logInGuestWithCompletion:] を実行してください。

TWTRAPIErrorCodeEndpointRetired

存在しないURLにHTTPリクエストした場合に該当します。

TWTRAPIErrorCodeApplicationCannotPerformWriteAction

HTTP 403エラーに該当します。 — アプリケーションでPOST、PUT、DELETE の使用が制限されている時に帰ってくるエラーです。詳細は How to appeal application suspension and other disciplinary actionsを参照してください。

TWTRAPIErrorCodeCannotMuteSelf

HTTP 403エラーに該当します。自分自身のアカウントはミュート対象にできません。

TWTRAPIErrorCodeCannotMuteSpecifiedUser

HTTP 403エラーに該当します。The authenticated user account is not muting the account a call is attempting to unmute.

TWTRAPIErrorCodeAlreadyRetweeted

このツイートは既にリツイートしています。

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.API v1.1における速度制限を参照してください。


こちらも参照してください

https://dev.twitter.com/docs/error-codes-responses



宣言場所

TWTRAPIErrorCode.h.