Pular para o conteúdo

Códigos de erro

O serviço de reconhecimento facial da TechTrue® utiliza os seguintes códigos de erro:

Error CodeMeaning
400Bad Request — Sua requisição é inválida.
401Unauthorized — Seu token é inválido.
403Forbidden — Não foi possível processar sua requisição.
404Not Found — Não foi possível encontrar o recurso da sua requisição.
405Method Not Allowed — Método não permitido para esta requisição.
406Not Acceptable — O formato da requisição não é aceito.
429Too Many Requests — Muitas requisições realizadas!
500Internal Server Error — Tivemos um problema no nosso serviço. Tente novamente mais tarde.
503Service Unavailable — Serviço temporariamente suspenso. Tente novamente mais tarde.

Além do código de retorno no contexto do HTTP, o conteúdo da resposta contém um código de retorno no contexto da aplicação. A tabela abaixo exemplifica esses códigos:

Return codeMessageMeaning
1000ENROLLED_SUCCESSFULLYThe submitted biometric data has been registered.
1001ENROLL_FAILEDThe submitted biometric failed to be registered.
1002VERIFIED_SUCCESSFULLYThe submitted biometric data matched the specified External ID.
1003VERIFY_FAILEDThe submitted biometric data did not match the specified External ID.
1004DELETED_SUCCESSFULLYDeletion successful. (The External ID and associated biometric data removed from system.)
1005DELETE_FAILEDDeletion failed.
1006UPDATED_SUCCESSFULLYUpdate successful. (The biometric data associated with requested External ID was updated in system.)
1007UPDATE_FAILEDUpdate Failed.
1008IDENTIFIED_SUCCESSFULLThe submitted biometric data matched that of an enrolled External ID.
1009IDENTIFY_FAILEDNo External ID matched against the submitted biometric data.
1010BAD_PARAMETERInvalid parameter
1011INVALID_IMAGEThe submited biometric is invalid.
1012POOR_IMAGE_QUALITYThe submitted face image(s) were not good enough quality to fulfill the request.
1013LIVENESS_CHECK_FAILEDLiveness check didn’t pass the expected threshold