Huemn home
Menu

Errors and limits

Handle ambiguous submissions, image constraints and scoped authorization failures.

Request limits

Supply JPEG or PNG as standard Base64 without a data-URL prefix. Each file may contain up to 5 MiB, 8,192 pixels per side and 20 million pixels total. Comparison, enrollment and search require exactly one face per image.

Read an error

Errors include error.code, error.message and error.requestId. Preserve the request ID for support. Exclude credentials, images, embeddings, biometric scores, subject and consent references from logs.

400 Malformed input
Inspect the request shape and image encoding.
401 Invalid or revoked key
Obtain an operator-provisioned, current key.
402 Insufficient credits
INSUFFICIENT_CREDITS blocks new charged admission. Ask your operator about the configured non-money service units.
403 Insufficient scope or withdrawn consent
Check authorization before submitting again.
404 Inaccessible scoped resource
Verify the identifier, tenant and purpose.
409 Existing admission or conflict
ADMISSION_ALREADY_EXISTS returns accounting status, not a replayed biometric result. IDEMPOTENCY_CONFLICT means the same admission key was used for a changed request. Enrollment, erasure and model conflicts also use this status.
413 Image or payload exceeds limits
Check bytes, dimensions and pixel count.
422 Single-face requirement failed
Inspect the number of faces in each input.
429 Rate or capacity limit
Reduce concurrency and respect bounded retry policy.
503 Policy or dependency unavailable
CREDIT_POLICY_UNAVAILABLE means the operator has not configured the required credit policy. Dependency failures or deadlines also use 503; preserve request identity because an enrollment or erasure request may already have been accepted.

Credit admission and retries

Detect, compare, enrollment and search support operator-configured credit admission. Units are integers, not money. Admission debits before execution; admitted execution failures remain charged and unknown outcomes are not automatically refunded. Only a proven unstarted attempt can be released; compensating refunds require an operator.

An identical admitted retry normally returns 409 with error and admission, without rerunning inference or returning the earlier biometric result. A committed identical enrollment can instead return its canonical current face metadata. Current authorization still applies. Read the admission identity rules before retrying.

After a timeout

Neither private SDK retries automatically. Retain the exact image bytes, face ID and metadata for an explicit enrollment retry. For a tracked erasure request, keep the original idempotency key and selector. A second submission with a fresh identity can produce a different operation.

Continue readingEvaluation method