Old Version

New Version

screen-reader

Screen Reader

Aadhaar - Official Aadhaar Website

English

Old Version

New Version

screen-reader

Screen Reader

English

More

Unique Identification Authority of India - Aadhaar

Home

Data and Downloads

API Error Handling

This page provides guidelines for handling API errors within the application. While developing applications, AUAs need to decide how to handle the errors gracefully and provide resident/operator friendly messages. Simply showing the error on screen is not helpful. This document is an attempt to provide guidelines for doing better error handling. 

 

Following table describes API error codes, suggestion for how to handle it, possible message to user, and probable reasons for the error.

 

Any other information regarding errors, please contact auth support team of UIDAI at authsupport@uidai.net.in.

API Error CodeDescriptionProvision Required in the ApplicationSuggested Message to the UserSuggested instructions to the userProbable Reasons
100"Pi" (basic) attributes of demographic data did not matchUser should be allowed to re-enter his/her personal information attributes like name, lname, gender, dob, dobt, age, phone, email whichever is used for authentication in applicationPlease re-enter your <name, lname, gender, dob, dobt, age, phone, email>.Operator should re-enter correct details personal information as per the Aadhaar letter. Ensure correct Aadhaar Information is entered.One or more personal information attributes not matching.
200"Pa" attributes of demographic data did not matchUser should be allowed to re-enter address fieldsPlease re-enter your <address details>.Re-enter correct address as per the Aadhaar letter. Ensure correct Aadhaar Information is entered.One or more address attributes not matching.
300Biometric data did not matchAllow "n" retry attempts (configurable). Inform user of remaining attempts.Please give your finger prints again.Ensure correct Aadhaar number is entered. Clean fingers and place properly on scanner.Poor fingerprint quality, scanner dust, wet fingers.
310Duplicate fingers used in the requestPrompt user to provide distinct fingersPlease try again with distinct fingers.Provide different fingers for two-finger authentication.Same finger sent twice in the request.
311Duplicate irises used in the requestPrompt user to provide distinct irisesPlease try again with distinct irises.Provide different irises for iris authentication.Same iris sent twice in the request.
312FMR and FIR cannot be mixed in the same transactionEnsure no mixing of fingerprint image and minutiae records in a transactionTechnical Exception <No>Contact technical helpdesk.Cannot mix fingerprint image (FIR) and minutiae records (FMR).
313Single FIR has multiple fingersPrompt user to place a single finger at a timePlease try again placing single finger on device.Place one finger at a time on the device.FIR contains multiple finger images.
314More than 10 FMR/FIR records in the requestLimit fingerprint records to a maximum of 10Technical ExceptionContact support. Ensure request does not exceed 10 finger records.Authentication request exceeds 10 finger records.
315More than 2 IIR records in the requestLimit iris records to a maximum of 2Technical ExceptionContact support. Ensure request does not exceed 2 iris records.Authentication request exceeds 2 iris records.
400OTP validation failedAllow retry; provide option to regenerate OTPPlease provide correct OTP value.Generate a new OTP if repeated failures occur.Incorrect OTP entered or value mismatch in CIDR.
401"Tkn" validation failedDerive token value from network operatorTechnical ExceptionContact support. Verify token details."Tkn" details do not match CIDR registration.
500Invalid Skey encryptionUse configurable UIDAI-issued digital certificatesTechnical Exception <No>Contact technical helpdesk. Verify correct digital certificate is used for AES-256 encryption.Wrong digital certificate used for AES-256 encryption.
501Invalid "ci" attribute in SkeyMake "ci" value configurableTechnical Exception <>Verify UIDAI certificate expiry date is properly specified.Certificate expiry date not properly specified in "ci" attribute.
502Invalid PID encryptionTest extensively with UIDAI test serviceTechnical Exception <No>Ensure correct AES encryption implementation is used.Incorrect AES encryption implementation.
503Invalid HMAC encryptionTest extensively with UIDAI test serviceTechnical Exception <No>Verify AES encryption and key usage are correct.Incorrect AES encryption or mismatched session keys.
504Session key re-initiation requiredProvide full session key initiation capabilityTechnical Exception <No>Try again. Session may have expired.Session expired or session key out of sync.
505Synchronized Skey not allowedUse full skey scheme instead of synchronized schemeTechnical Exception <No>Switch to full skey scheme.AUA does not have SSK scheme privilege.
510Invalid Auth XML formatValidate Auth XML before sending to CIDRTechnical Exception <No>Use the latest recommended API version.Non-compliance with Authentication API XML structure.
511Invalid PID XML formatValidate PID XML structure before encryptionTechnical Exception <No>Use the latest recommended API version.Non-compliance with PID XML format specification.
520Invalid device — "tid" attribute value is incorrectSet "tid" attribute to "public" for non-registered devicesTechnical Exception <No>Use "public" value only (lowercase) for "tid".Incorrect "tid" attribute value in the request.
521Invalid finger device code (fdc)Obtain proper FDC code from certified vendorTechnical Exception <No>Use certified FDC code obtained from the vendor.FDC code not from a UIDAI-certified vendor.
522Invalid iris device code (idc)Obtain proper IDC code from certified vendorTechnical Exception <No>Use certified IDC code obtained from the vendor.IDC code not from a UIDAI-certified vendor.
530Invalid authenticator code (AUA code)Use registered AUA code in requestsTechnical Exception <No>Verify AUA code is registered with UIDAI.Unregistered or mismatched AUA code used.
540Invalid Auth XML versionUse a supported API versionTechnical Exception <No>Use the supported API version as recommended by UIDAI.Unsupported or invalid API version specified.
541Invalid PID XML versionUse a supported PID XML versionTechnical Exception <No>Use the supported PID XML version as recommended by UIDAI.Unsupported PID element version specified.
542AUA not authorized to use the ASA channelEnsure AUA-ASA link exists in UIDAI portalEnsure request is via authorized ASA.Contact UIDAI helpdesk for ASA linkage.No AUA-ASA linking configured in portal.
543Sub-AUA not associated with AUAAdd Sub-AUA to correct parent AUA in portalEnsure request is via associated AUA.Contact UIDAI for Sub-AUA association.Sub-AUA not added to the parent AUA.
550Invalid "Uses" element attributesValidate Uses tag attributes before sending requestTechnical Exception <No>Check "bt" attribute conditional usage rules.Invalid attributes or conditional logic error in Uses element.
561Request has expired (old timestamp)Do not store Pid block; sync client date-time with ISTVerify device/client date-time synchronization.Synchronize device with IST and resend the request.Old request submitted or device date-time is behind current time.
562Request has future timestampSync client/server date-time with ISTVerify device/client date-time synchronization.Synchronize device with IST and resend the request.Device date-time is ahead of server time.
563Duplicate request receivedPrompt user to try again with a new requestPlease submit your request again.Send a new authentication request.Identical request sent multiple times.
564HMAC validation failedCreate HMAC using SHA-256 as defined in APITechnical Exception <No>Verify HMAC algorithm implementation as per API specification.Wrong HMAC calculation algorithm used.
565License key has expiredImplement configurable license key managementTechnical Exception <No>Update the license key configuration.Current license key has expired.
566Invalid license keyImplement license key management featureTechnical Exception <No>Verify license key validity with UIDAI.License key is not valid.
567Invalid input — unsupported characters in dataAdd client-side and server-side validation for character encodingTechnical Exception <No>Remove unsupported characters from Indian language fields.Unsupported characters used in Indian language input fields.
568Unsupported language specifiedRestrict language selection to API-supported languages onlyTechnical Exception <No>Select only a supported language as per UIDAI API specification.Language value not in the supported language list.
569Digital signature verification failedEnsure end-to-end data integrity and securityTechnical Exception <No>Use a secure communication protocol. Do not modify XML after signing.XML data modified after signing.
570Invalid key info in digital signatureStore and manage certificate outside application codeTechnical Exception <No>Verify certificate validity and issuing authority.Expired, invalid, or unauthorized digital certificate used.
571PIN requires reset — default PIN not changedAllow PIN reset before authentication usagePlease reset your PIN in the UIDAI update application.Change default PIN via UIDAI client application.Resident using unreset default PIN.
572Invalid biometric position valueValidate "pos" attribute value against biometric typeTechnical Exception <No>Check that position value is valid for the biometric type used.Position attribute does not match the biometric type.
573Pi usage not allowed by licenseRestrict Pi usage based on license authorizationTechnical Exception <No>Check AUA license for Pi usage authorization.AUA license does not permit Pi usage.
574Pa usage not allowed by licenseRestrict Pa usage based on license authorizationTechnical Exception <No>Check AUA license for Pa usage authorization.AUA license does not permit Pa usage.
575Pfa usage not allowed by licenseRestrict Pfa usage based on license authorizationTechnical Exception <No>Check AUA license for Pfa usage authorization.AUA license does not permit Pfa usage.
576FMR usage not allowed by licenseRestrict FMR usage based on license authorizationTechnical Exception <No>Check AUA license for FMR usage authorization.AUA license does not permit FMR usage.
577FIR usage not allowed by licenseRestrict FIR usage based on license authorizationTechnical Exception <No>Check AUA license for FIR usage authorization.AUA license does not permit FIR usage.
578IIR usage not allowed by licenseRestrict IIR usage based on license authorizationTechnical Exception <No>Check AUA license for IIR usage authorization.AUA license does not permit IIR usage.
579OTP usage not allowed by licenseRestrict OTP usage based on license authorizationTechnical Exception <No>Check AUA license for OTP usage authorization.AUA license does not permit OTP usage.
580PIN usage not allowed by licenseRestrict PIN usage based on license authorizationTechnical Exception <No>Check AUA license for PIN usage authorization.AUA license does not permit PIN usage.
581Fuzzy matching not allowed by licenseRestrict "ms" attribute usage per licenseTechnical Exception <No>Check AUA license for fuzzy matching authorization.AUA license does not permit fuzzy matching.
582Local language usage not allowed by licenseRestrict language options based on licenseTechnical Exception <No>Use only authorized languages as per AUA license.AUA license does not permit local language usage.
584Invalid PIN code in Meta elementValidate PIN code value before submissionTechnical Exception <No>Use a valid PIN code from UIDAI-recognized system.PIN code not in the valid values list.
585Invalid Geo code in Meta elementValidate decimal latitude/longitude formatTechnical Exception <No>Use proper decimal format with 4-digit precision for geo coordinates.Geo code does not match specification format.
710Missing "Pi" data in PID blockValidate PID block structure before encryptionTechnical Exception <No>Ensure all required Pi data is included as per Uses specification.Missing Pi data as specified in Uses element.
720Missing "Pa" data in PID blockValidate PID block structure before encryptionTechnical Exception <No>Ensure all required Pa data is included as per Uses specification.Missing Pa data as specified in Uses element.
721Missing "Pfa" data in PID blockValidate PID block structure before encryptionTechnical Exception <No>Ensure all required Pfa data is included as per Uses specification.Missing Pfa data as specified in Uses element.
730Missing PIN data in PID blockValidate PID block structure before encryptionTechnical Exception <No>Ensure PIN data is included if specified in Uses element.Missing PIN data as specified in Uses element.
740Missing OTP data in PID blockValidate PID block structure before encryptionTechnical Exception <No>Ensure OTP data is included if specified in Uses element.Missing OTP data as specified in Uses element.
800Invalid biometric dataReview biometric device compliance with UIDAI standardsTechnical Exception <No>Verify ISO-compliant biometric templates are being used.Non-ISO compliant or corrupted biometric templates.
810Missing biometric data in PID blockValidate PID block structure before encryptionTechnical Exception <No>Ensure biometric data is included as per Uses specification.Missing biometric data as specified in Uses element.
811Biometric data not available in CIDRHandle inactive biometric status and contact helpdeskBiometric data not available in CIDR. Contact UIDAI.Verify Aadhaar number and update biometrics via UIDAI.Biometric not enrolled in resident's record in CIDR.
812Best Finger Detection (BFD) not doneInitiate BFD application for the residentPlease proceed with the Best Finger Detection (BFD) process.Complete the BFD process before authentication.Resident has not completed Best Finger Detection process.
820Missing "bt" attribute value in Uses elementValidate Uses element for "bt" attribute presenceTechnical Exception <No>Include a valid "bt" value in the Uses element.Empty or missing "bt" attribute in Uses element.
821Invalid "bt" attribute value in Uses elementValidate "bt" attribute against allowed valuesTechnical Exception <No>Use valid "bt" attribute values as per API specification.Invalid value specified in "bt" attribute.
901No authentication data present in requestValidate that at least one authentication factor is includedTechnical Exception <No>Include at least one authentication factor (Demo, Pv, or Bios).No Demo, Pv, or Bios data present in the request.
902Invalid "dob" value format or out of rangeValidate date-of-birth format and age range client-sidePlease enter date of birth in the specified format.Use YYYY or YYYY-MM-DD format. Age must be between 0 and 150 years.Wrong date format or age value outside valid range.
910Invalid "mv" attribute value in Pi elementValidate "mv" attribute value before requestTechnical Exception <No>Use a valid "mv" attribute value as per API specification.Invalid "mv" value specified in Pi element.
911Invalid "mv" attribute value in Pfa elementValidate "mv" attribute value before requestTechnical Exception <No>Use a valid "mv" attribute value as per API specification.Invalid "mv" value specified in Pfa element.
912Invalid "ms" (match score) attribute valueValidate "ms" attribute value before requestTechnical Exception <No>Use a valid "ms" attribute value as per API specification.Invalid "ms" match score value specified.
913Both Pa and Pfa elements present — mutually exclusiveEnsure Pa and Pfa are not sent in the same requestPa and Pfa elements are mutually exclusive. Use only one.Use either Pa or Pfa in the request, not both.Both Pa and Pfa address elements present in the same request.
930–939Technical server-side errorsImplement standard error handling and contact UIDAI tech supportTechnical Exception <No>Contact UIDAI technical support team.Internal authentication server issues.
940Unauthorized ASA channel usedConsult ASA for proper channel authorizationTechnical Exception <No>Verify ASA channel authorization with UIDAI.Unauthorized ASA channel used in the request.
941ASA channel not specifiedConsult ASA and specify proper channelTechnical Exception <No>Specify the proper ASA channel in the request.ASA channel not specified in the request.
980Unsupported option or development feature used in productionReview and remove all development features before production deploymentTechnical Exception <No>Remove development-only features from production build.Development feature used in production environment.
996Aadhaar number has been cancelledHandle cancelled Aadhaar status and inform operator to re-enrollThis Aadhaar number has been cancelled. Resident should re-enroll.Contact UIDAI helpline for re-enrollment.Aadhaar number has been cancelled by UIDAI.
997Aadhaar number is suspended or not activeHandle suspended Aadhaar status gracefullyAadhaar status is not active. Please contact UIDAI.Contact UIDAI helpline to resolve suspended status.Aadhaar number is suspended or not active in CIDR.
998Invalid Aadhaar number or data unavailable in systemValidate Aadhaar number format on client-side before submissionPlease enter a correct Aadhaar number.Retry with the correct 12-digit Aadhaar number.Invalid Aadhaar number format or Aadhaar not found in CIDR.
999Unknown errorImplement standard error handling for unknown errorsTechnical Exception <No>Contact authsupport@uidai.gov.in for assistance.Unidentified error condition in the system.

 

 

Testing Data and License Keys

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

UIDAI Certificate Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Sample Clients

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Content Information

Published on: 11 May 2026

Last Updated: 21 May 2026

Owner: Dev frontend

People also look for
  • Documents
  • Aadhaar Dashboard - Unique Identification Authority of India | Government of India
  • Handbooks
  • Videos - Unique Identification Authority of India | Government of India
  • Annual Reports

Content Information

Published on: 11 May 2026

Last Updated: 21 May 2026

Owner: Dev frontend

Data and Downloads - Unique Identification Authority of India | Government of India