The codes, at a glance
The 400s: a single error, with an index
The 400 body points at the offending image with imageNumber (0-based):
The 500s come as plain text
Two request errors do not return a tidy 400 but a 500 whose body is the literal string Internal Server Error — not JSON:
- Omitting the
imagesfield. - Sending an
operationslist shorter thanimages.
images and the operations alignment in your code and stop retrying.
The gateway errors: another format
The401 and 404 are not emitted by the service but by the gateway, and their body has another format (statusCode instead of code):
A
401 with a key that “always worked” is usually an environment mix-up: the UAT key against the production URL or vice versa. Verify the URL + key pair before escalating.The 422s: contract violations
A non-JSON body, a body that is not an object, or an info out of range (2–256 characters) return 422 with a per-field breakdown in detail. These are programming errors, not data errors: fix them in development, do not handle them in production.
Retry policy
If you have to open a ticket
Write to customer.support@vusecurity.com with:Back to the introduction
The decision rule, the endpoints and the operation map of Face Analysis.