RecaptchaStatusCodes
Stay organized with collections
Save and categorize content based on your preferences.
Status codes for the reCAPTCHA API.
Inherited Constant Summary
From class
com.google.android.gms.common.api.CommonStatusCodes
int |
API_NOT_CONNECTED |
|
int |
CANCELED |
|
int |
DEVELOPER_ERROR |
|
int |
ERROR |
|
int |
INTERNAL_ERROR |
|
int |
INTERRUPTED |
|
int |
INVALID_ACCOUNT |
|
int |
NETWORK_ERROR |
|
int |
RESOLUTION_REQUIRED |
|
int |
SERVICE_DISABLED |
|
int |
SERVICE_VERSION_UPDATE_REQUIRED |
|
int |
SIGN_IN_REQUIRED |
|
int |
SUCCESS |
|
int |
SUCCESS_CACHE |
|
int |
TIMEOUT |
|
Inherited Method Summary
From class
com.google.android.gms.common.api.CommonStatusCodes
getStatusCodeString
(int arg0)
From class java.lang.Object
Constants
public static final int
RECAPTCHA_2FA_ABORTED
The operation was aborted.
Please use the abortion token with the reCAPTCHA Enterprise server to obtain more
information.
Constant Value:
36014
public static final int
RECAPTCHA_2FA_ATTEMPTS_EXHAUSTED
public static final int
RECAPTCHA_2FA_CHALLENGE_EXPIRED
The challenge account request token has expired.
Please obtain another request token from the reCAPTCHA Enterprise server.
Constant Value:
36006
public static final int
RECAPTCHA_2FA_INVALID_PIN
The verification PIN has invalid format.
Please verify that the input PIN is of the right length and only contain numerical
characters.
Constant Value:
36008
public static final int
RECAPTCHA_2FA_INVALID_REQUEST_TOKEN
The challenge account request token is invalid.
Please verify that you are using the correct token obtained from the reCAPTCHA
Enterprise server.
Constant Value:
36007
public static final int
RECAPTCHA_2FA_PIN_MISMATCH
The verification PIN does not match the PIN sent to the challenged account.
Please try again using a new VerificationHandle
.
Constant Value:
36009
public static final int
RECAPTCHA_2FA_UNKNOWN
An internal error occurred during two factor authentication calls.
Please try again in a bit.
Constant Value:
36005
public static final int
RECAPTCHA_FEATURE_OFF
reCAPTCHA feature is disabled.
Please check if you update Google Play Services on your phone to get our latest
reCAPTCHA module code that matches to the API versions you used in the SDK in your
app.
Constant Value:
36004
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eRecaptchaStatusCodes\u003c/code\u003e defines status codes specifically for the reCAPTCHA API on Android, primarily focusing on two-factor authentication (2FA) and feature availability.\u003c/p\u003e\n"],["\u003cp\u003eThese codes indicate various outcomes, such as successful operations, common errors like invalid tokens or PINs, and internal issues during the reCAPTCHA process.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these status codes to understand the results of reCAPTCHA operations and handle errors gracefully, improving the user experience.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits constants and methods from \u003ccode\u003eCommonStatusCodes\u003c/code\u003e for general API status information.\u003c/p\u003e\n"]]],["`RecaptchaStatusCodes` defines status codes for the reCAPTCHA API, including those for two-factor authentication (2FA). Key actions include addressing issues like aborted operations (`RECAPTCHA_2FA_ABORTED`), exhausted attempts (`RECAPTCHA_2FA_ATTEMPTS_EXHAUSTED`), expired tokens (`RECAPTCHA_2FA_CHALLENGE_EXPIRED`), invalid PINs (`RECAPTCHA_2FA_INVALID_PIN`), and token mismatches (`RECAPTCHA_2FA_PIN_MISMATCH`). Also included is a code to report unknown internal errors `RECAPTCHA_2FA_UNKNOWN` and when the feature is disabled `RECAPTCHA_FEATURE_OFF`. The class extends `CommonStatusCodes`, inheriting additional generic status codes.\n"],null,["# RecaptchaStatusCodes\n\npublic final class **RecaptchaStatusCodes** extends CommonStatusCodes \nStatus codes for the reCAPTCHA API. \n\n### Constant Summary\n\n|-----|-----------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| int | [RECAPTCHA_2FA_ABORTED](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_ABORTED) | The operation was aborted. |\n| int | [RECAPTCHA_2FA_ATTEMPTS_EXHAUSTED](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_ATTEMPTS_EXHAUSTED) | All allowed verification attempts are exhausted. |\n| int | [RECAPTCHA_2FA_CHALLENGE_EXPIRED](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_CHALLENGE_EXPIRED) | The challenge account request token has expired. |\n| int | [RECAPTCHA_2FA_INVALID_PIN](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_INVALID_PIN) | The verification PIN has invalid format. |\n| int | [RECAPTCHA_2FA_INVALID_REQUEST_TOKEN](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_INVALID_REQUEST_TOKEN) | The challenge account request token is invalid. |\n| int | [RECAPTCHA_2FA_PIN_MISMATCH](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_PIN_MISMATCH) | The verification PIN does not match the PIN sent to the challenged account. |\n| int | [RECAPTCHA_2FA_UNKNOWN](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_2FA_UNKNOWN) | An internal error occurred during two factor authentication calls. |\n| int | [RECAPTCHA_FEATURE_OFF](/android/reference/com/google/android/gms/recaptcha/RecaptchaStatusCodes#RECAPTCHA_FEATURE_OFF) | reCAPTCHA feature is disabled. |\n\n### Inherited Constant Summary\n\nFrom class com.google.android.gms.common.api.CommonStatusCodes \n\n|-----|---------------------------------|---|\n| int | API_NOT_CONNECTED | |\n| int | CANCELED | |\n| int | DEVELOPER_ERROR | |\n| int | ERROR | |\n| int | INTERNAL_ERROR | |\n| int | INTERRUPTED | |\n| int | INVALID_ACCOUNT | |\n| int | NETWORK_ERROR | |\n| int | RESOLUTION_REQUIRED | |\n| int | SERVICE_DISABLED | |\n| int | SERVICE_VERSION_UPDATE_REQUIRED | |\n| int | SIGN_IN_REQUIRED | |\n| int | SUCCESS | |\n| int | SUCCESS_CACHE | |\n| int | TIMEOUT | |\n\n### Inherited Method Summary\n\nFrom class com.google.android.gms.common.api.CommonStatusCodes \n\n|--------------------------------------------------------------------------|-------------------------------|\n| static [String](//developer.android.com/reference/java/lang/String.html) | getStatusCodeString(int arg0) |\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**RECAPTCHA_2FA_ABORTED**\n\nThe operation was aborted.\n\nPlease use the abortion token with the reCAPTCHA Enterprise server to obtain more\ninformation. \nConstant Value: 36014 \n\n#### public static final int\n**RECAPTCHA_2FA_ATTEMPTS_EXHAUSTED**\n\nAll allowed verification attempts are exhausted.\n\nPlease restart the verification workflow by calling [execute(RecaptchaHandle, RecaptchaAction)](/android/reference/com/google/android/gms/recaptcha/RecaptchaClient#execute(com.google.android.gms.recaptcha.RecaptchaHandle, com.google.android.gms.recaptcha.RecaptchaAction)) again to fetch a new reCAPTCHA\ntoken, for retrieving a new challenge token via reCAPTCHA Enterprise API\nCreateAssessment(), then calling [challengeAccount(RecaptchaHandle, String)](/android/reference/com/google/android/gms/recaptcha/RecaptchaClient#challengeAccount(com.google.android.gms.recaptcha.RecaptchaHandle, java.lang.String)). \nConstant Value: 36010 \n\n#### public static final int\n**RECAPTCHA_2FA_CHALLENGE_EXPIRED**\n\nThe challenge account request token has expired.\n\nPlease obtain another request token from the reCAPTCHA Enterprise server. \nConstant Value: 36006 \n\n#### public static final int\n**RECAPTCHA_2FA_INVALID_PIN**\n\nThe verification PIN has invalid format.\n\nPlease verify that the input PIN is of the right length and only contain numerical\ncharacters. \nConstant Value: 36008 \n\n#### public static final int\n**RECAPTCHA_2FA_INVALID_REQUEST_TOKEN**\n\nThe challenge account request token is invalid.\n\nPlease verify that you are using the correct token obtained from the reCAPTCHA\nEnterprise server. \nConstant Value: 36007 \n\n#### public static final int\n**RECAPTCHA_2FA_PIN_MISMATCH**\n\nThe verification PIN does not match the PIN sent to the challenged account.\n\nPlease try again using a new [VerificationHandle](/android/reference/com/google/android/gms/recaptcha/VerificationHandle). \nConstant Value: 36009 \n\n#### public static final int\n**RECAPTCHA_2FA_UNKNOWN**\n\nAn internal error occurred during two factor authentication calls.\n\nPlease try again in a bit. \nConstant Value: 36005 \n\n#### public static final int\n**RECAPTCHA_FEATURE_OFF**\n\nreCAPTCHA feature is disabled.\n\nPlease check if you update Google Play Services on your phone to get our latest\nreCAPTCHA module code that matches to the API versions you used in the SDK in your\napp. \nConstant Value: 36004"]]