SAP Authentication 365 returns the following error codes:
Failure Condition (Generate OTP)
Failure Message Body
This message is used when the telephone number is null or blank
The telephone number cannot be null.
If the telephone number is not in the E.164 format
The telephone number must have 2 to 14 numbers.
If the account ID is null or blank
The Account ID cannot be null.
If account validation fails, i.e., it doesn’t exists in the database
This Account is not valid.
If the token length is less than 4
The length of token cannot be less than 4.
If the token length is more than 9.
The length of token cannot be more than 9.
If the message body is empty
Message body cannot be Empty.
If time out doesn't satisfy the range values
Timeout value cannot be greater than 15 minutes (900 seconds) or less than 30 seconds.
If A2P hub couldn't send the SMS and failed to generate an order ID
No SMS Order ID was generated.
Failure Condition (Validate OTP)
If a blank OTP is entered
One time password cannot be empty.
If while validation, the telephone no was left empty or doesn’t satisfy E.164 standards
If the accountID is left blank
If no records were found for the provided accountID and telephone number combination for validation
No record was found for the provided verification parameters.
If the entered PIN time out period gets expired
The entered PIN has expired.
If entered PIN is wrong
Wrong PIN entered. No of tries remaining : #NoOfTriesRemaining
If maximum tries for the generate PIN is finished
The maximum number of tries for this pin been reached. Please generate another pin.
If the pin entered has been already used
This PIN might have been already used.
For HTTP error codes please refer to the HTTP Error/Status Codes article in the Enterprise Services knowledgebase: