These error codes can be returned by any Face API calls.
Http status code
Error code
Error message
Description
Bad Request (400)
BadArgument
Request body is invalid.
Bad Request (400)
BadArgument
JSON parsing error.
Bad or unrecognizable request JSON body.
Bad Request (400)
BadArgument
'recognitionModel' is invalid.
Bad Request (400)
BadArgument
'detectionModel' is invalid.
Bad Request (400)
BadArgument
'name' is empty.
Bad Request (400)
BadArgument
'name' is too long.
Bad Request (400)
BadArgument
'userData' is too long.
Bad Request (400)
BadArgument
'start' is too long.
Bad Request (400)
BadArgument
'top' is invalid.
Bad Request (400)
BadArgument
Argument targetFace out of range.
Bad Request (400)
BadArgument
Invalid argument targetFace.
Caused by invalid string format or invalid left/top/height/width value.
Bad Request (400)
InvalidURL
Invalid image URL.
Supported formats include JPEG, PNG, GIF(the first frame) and BMP.
Bad Request (400)
InvalidURL
Invalid image URL or error downloading from target server. Remote server error returned: "An error occurred while sending the request."
Bad Request (400)
InvalidImage
Decoding error, image format unsupported.
Bad Request (400)
InvalidImage
No face detected in the image.
Bad Request (400)
InvalidImage
There is more than 1 face in the image.
Bad Request (400)
InvalidImageSize
Image size is too small.
The valid image file size should be larger than or equal to 1 KB.
Bad Request (400)
InvalidImageSize
Image size is too big.
The valid image file size should be no larger than 6 MB.
Unauthorized (401)
401
Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
Forbidden (403)
UnsupportedFeature
Feature is not supported, missing approval for one or more of the following features: Identification, Verification.
These error codes can be returned by Face Liveness Session operations.
Http status code
Error code
Error message
Description
Bad Request (400)
BadArgument
Start parameter is invalid. Please specify the 'Id' field of the last entry to continue the listing process.
Bad Request (400)
BadArgument
Top parameter is invalid. Valid range is between 1 and 1000 inclusive.
Bad Request (400)
InvalidRequestBody
Incorrect request body provided. Please check the operation schema and try again.
Bad Request (400)
InvalidTokenLifetime
Invalid authTokenTimeToLiveInSeconds specified. Must be within 60 to 86400.
Bad Request (400)
InvalidLivenessOperationMode
Invalid livenessOperationMode specified. Must be 'Passive'.
Bad Request (400)
InvalidDeviceCorrelationId
A device correlation ID is required in the request body during session create or session start. Must not be null or empty, and be no more than 64 characters.
Not Found (404)
SessionNotFound
Session ID is not found. The session ID is expired or does not exist.
Face Identify error codes
These error codes can be returned by Face Identify operation.
Http status code
Error code
Error message
Description
Bad Request (400)
BadArgument
'recognitionModel' is incompatible.
Bad Request (400)
BadArgument
Person group ID is invalid.
Bad Request (400)
BadArgument
Large person group ID is invalid.
Bad Request (400)
BadArgument
Dynamic person group ID is invalid.
Bad Request (400)
BadArgument
The argument maxNumOfCandidatesReturned is not valid.
The valid range is between [1, 100].
Bad Request (400)
BadArgument
The argument confidenceThreshold is not valid.
The valid range is between [0, 1].
Bad Request (400)
BadArgument
The length of faceIds is not in a valid range.
The valid range is between [1, 10].
Bad Request (400)
FaceNotFound
Face is not found.
Bad Request (400)
PersonGroupNotFound
Person group is not found.
Bad Request (400)
LargePersonGroupNotFound
Large person group is not found.
Bad Request (400)
DynamicPersonGroupNotFound
Dynamic person group is not found.
Bad Request (400)
PersonGroupNotTrained
Person group not trained.
Bad Request (400)
LargePersonGroupNotTrained
Large person group not trained.
Bad Request (400)
PersonGroupIdAndLargePersonGroupIdBothNotNull
Large person group ID and person group ID are both not null.
Bad Request (400)
PersonGroupIdAndLargePersonGroupIdBothNull
Large person group ID and person group ID are both null.
Bad Request (400)
MissingIdentificationScopeParameters
No identification scope parameter is present in the request.