Skip to main content

Errors

Valydar uses standard HTTP status codes and consistent error responses.

Error Response Format

{
"error": "invalid_api_key",
"message": "The provided API key is invalid"
}

HTTP Status Codes

StatusMeaning
200Success
201Created
400Bad Request — invalid input
401Unauthorized — missing or invalid API key
403Forbidden — key doesn't have permission
404Not Found — resource doesn't exist
409Conflict — resource already exists
413Payload Too Large — file exceeds 10MB
429Too Many Requests — rate limit exceeded
500Internal Server Error

Common Errors

Invalid API Key

{
"error": "unauthorized",
"message": "Invalid API key"
}

Fix: Check your API key is correct and includes a valid API key.

Rate Limited

{
"error": "rate_limited",
"message": "Rate limit exceeded. Try again in 30 seconds."
}

Fix: Implement exponential backoff in your client.

Verification Not Found

{
"error": "not_found",
"message": "Verification not found"
}

Fix: Check the verification ID is correct.

File Too Large

{
"error": "payload_too_large",
"message": "File exceeds maximum size of 10MB"
}

Fix: Compress the image before uploading.

Missing Document

{
"error": "bad_request",
"message": "Document required before running face match"
}

Fix: Upload a document before running face match.