OTPless SDK Error Codes
This document provides detailed explanations for all the error codes returned by the OTPless SDK. Each section includes the response type, status code, error code, and a description of the issue.Status Code: 429
Error Code: 7020 - Authentication Rate Limited
- Response Type:
INITIATE - Error Message: Authentication Rate Limited reached. Please try again after some time.
Error Code: 7022 - Identity Rate Limit Exceeded
- Response Type:
INITIATE - Error Message: The identity associated with this request has exceeded the allowed number of authentication requests. Please wait until the rate limit resets.
Error Code: 7023 - IP Rate Limit Exceeded
- Response Type:
INITIATE - Error Message: The IP associated with this request has exceeded the allowed number of authentication requests. Please wait until the rate limit resets.
Error Code: 7024 - Application Rate Limit Exceeded
- Response Type:
INITIATE - Error Message: The application has exceeded the allowed number of authentication requests. Please wait until the rate limit resets.
Status Code: 401
Error Code: 7025 - SMS Delivery Not Enabled for Country
- Response Type:
INITIATE - Error Message: SMS delivery to this country is not enabled. Contact OTPLESS team to activate.
Error Code: 401 - Unauthorized Request
- Response Type:
INITIATE - Error Message: UnAuthorized request! Please check your appId.
Status Code: 400
Error Code: 7101 - Invalid Parameters
- Response Type:
INITIATE - Error Message: Request error: Invalid parameters values or Required parameters are missing.
Error Code: 7102 - Invalid Phone Number
- Response Type:
INITIATE - Error Message: Request error: Invalid phone number.
Error Code: 7103 - Invalid Phone Delivery Channel
- Response Type:
INITIATE - Error Message: Request error: Invalid phone number delivery channel.
Error Code: 7104 - Invalid Email
- Response Type:
INITIATE - Error Message: Request error: Invalid email.
Error Code: 7105 - Invalid Email Channel
- Response Type:
INITIATE - Error Message: Request error: Invalid email channel.
Error Code: 7106 - Invalid Phone Number or Email
- Response Type:
INITIATE - Error Message: Request error: Invalid phone number or email.
Error Code: 7112 - Empty OTP
- Response Type:
VERIFY - Error Message: Request error: Empty OTP.
Error Code: 7113 - Invalid Expiry
- Response Type:
INITIATE - Error Message: Request error: Invalid expiry.
Error Code: 7115 - OTP Already Verified
- Response Type:
VERIFY - Error Message: Request error: OTP is already verified.
Error Code: 7116 - Invalid OTP Length
- Response Type:
INITIATE - Error Message: Request error: OTP Length is invalid. 4 and 6 only allowed.
Error Code: 7118 - Incorrect OTP
- Response Type:
VERIFY - Error Message: Request error: Incorrect OTP!
Error Code: 7121 - Invalid App Hash
- Response Type:
INITIATE - Error Message: Request error: Invalid app hash.
Error Code: 7303 - OTP Expired
- Response Type:
VERIFY - Error Message: Request error: OTP expired.
Error Code: 5003 - Connection Issue
- Response Type:
INITIATE - Error Message: Failed to fetch.
Error Code: 5003 - Connection Issue
- Response Type:
VERIFY - Error Message: Failed to fetch.
Status Code: 500
Error Code: 500 - Internal Server Error
- Response Type:
VERIFY/INITIATE - Error Message: Something went wrong! Please try again.
Status Code: 5002
Error Code: -1009 - Internet Error
- Response Type:
INTERNET_ERR - Error Message: Internet Error.
Error Code: -2 - Internet Error
- Response Type:
INTERNET_ERR - Error Message: Internet Error.
Status Code: 5003
Error Code: 5003 - Connection Issue
- Response Type:
FAILED - Error Message: Failed to fetch.
Status Code: 4000
Error Code: 4000 - Incorrect Request Values
- Response Type:
INITIATE - Error Message: The request values are incorrect, see details.
Status Code: 4001
Error Code: 4001 - 2FA Not Supported
- Response Type:
INITIATE - Error Message: OTPless headless SDK doesn’t support 2FA as of now.
Status Code: 4002
Error Code: 4002 - Incorrect Request Parameters
- Response Type:
INITIATE - Error Message: The request parameters are incorrect, see details.
Status Code: 4003
Error Code: 4003 - Incorrect Request Channel
- Response Type:
INITIATE - Error Message: The request channel is incorrect, see details.
Status Code: 5005
Error Code: 5005 - Request Timeout
- Response Type:
INITIATE/VERIFY - Error Message: Request timeout
Status Code: 5006
Error Code: 5006 - Failed to fetch response
- Response Type:
INITIATE/VERIFY - Error Message: Failed to fetch response