Errors
Detect, handle, and recover from API errors
Every Vlens response uses the same envelope. Errors are signalled by the error_code field — not the HTTP status. A 200 OK response with error_code set is still an error.
Always check error_code before treating a response as successful:
Specific error codes are listed in error_code alongside a descriptive error_message. Errors fall into the following categories:
When request fields fail validation, the response may include structured field-level details in error_descriptions:
Iterate error_descriptions to surface field-level errors in your UI.
If you encounter an error not listed here, contact support@vlenseg.com with:
error_code and error_message