Skip to main content

Service Result Codes

Table 1 – Service Result Code

serviceResultCodeDescriptionHTTP code
0The service execution was successful, the module processed the request correctly.200

Service Result Code /authenticateUser

serviceResultCodeDescriptionHTTP code
0User authenticated successfully.200
-100The registeredTemplateRaw parameter does not match the ID: [XXX]200
-101The bestImageToken parameter does not match a living person.200
-102User authentication failed due to non-matching templateRaw.200

Service Result Code /updateUserTemplate

serviceResultCodeDescriptionHTTP code
0The user's templateRaw was updated successfully.200
-100The registeredTemplateRaw parameter does not match the ID: [XXX]401
-102The registeredTemplateRaw parameter sent does not match the registered user's templateRaw for the user ID: [XXX]. InvalidRegisteredTemplateRaw.401
-103User not found400

Table 2 – Service Facial Authentication Result

CodeResultDescription
0NONEFacial verification could not be performed.
1NEGATIVEThe process was successfully executed. The facial pattern comparison of the faces does not match.
3POSITIVEThe process was successfully executed. The facial pattern comparison of the faces is positive. The value of serviceFacialSimilarityResult indicates the % of similarity between the compared images.
4NONE BECAUSE POSE EXCEEDFacial verification could not be performed due to face pose.
5NONE BECAUSE INVALID EXTRACTIONSFacial verification could not be performed due to issues in facial pattern extraction.

Table 3 – Service Liveness Result

CodeResultDescription
0NoneLiveness check could not be evaluated.
1SpoofDEPRECATED. Use 'NoLive' instead.
2UncertainDEPRECATED
3LiveThe subject is assumed to be alive.
4NoneBecauseBadQualityLiveness check could not be evaluated due to poor image quality.
5NoneBecauseFaceTooCloseLiveness check could not be evaluated because faces were detected too close to the edges.
6NoneBecauseFaceNotFoundLiveness check could not be evaluated because no faces were detected.
7NoneBecauseFaceTooSmallLiveness check could not be evaluated because faces detected were too small.
8NoneBecauseAngleTooLargeLiveness check could not be evaluated because the angle between faces exceeded the allowed limit.
9NoneBecauseImageDataErrorLiveness check could not be evaluated due to image format errors.
10NoneBecauseInternalErrorLiveness check could not be evaluated due to an internal error.
11NoneBecauseImagePreprocessErrorLiveness check could not be evaluated due to an image preprocessing error.
12NoneBecauseTooManyFacesLiveness check could not be evaluated because too many faces were detected in the image.
13NoneBecauseFaceTooCloseToBorderLiveness check could not be evaluated because the face is too close to the border.
14NoneBecauseFaceCroppedLiveness check could not be evaluated because the face is cropped.
15NoneBecauseLicenseErrorLiveness check could not be evaluated due to a license error.
16NoneBecauseFaceOccludedLiveness check could not be evaluated because the face is occluded.
17NoLiveNo liveness detected.
18NoneBecauseEyesClosedLiveness check could not be evaluated because the person's eyes are closed.

Error Scenarios and Responses

caution

For cases of input parameter validation errors, a response will be obtained according to RFC 9457 Problem Details.

Example ScenarioHTTP codeContent-typeBody
Missing required parameter400application/jsonjson<br>{<br> "status": 400,<br> "title": "Bad Request",<br> "detail": "Invalid request.",<br> "type": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400",<br> "errors": [<br> "countryCode is required"<br> ]<br>}
Communication failure with external service502application/jsonjson<br>{<br> "status": 502,<br> "title": "Bad Gateway",<br> "detail": "Server got an invalid response.",<br> "type": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502"<br>}
Timeout504application/jsonjson<br>{<br> "message": "Endpoint request timed out"<br>}