D

Errors

D-ME uses standard HTTP status codes. Errors include a machine-readable code and a human-readable message.

Error Response Format

{
  "error": {
    "code": "VERIFICATION_NOT_FOUND",
    "message": "Verification with ID abc123 was not found",
    "details": { "id": "abc123" }
  }
}

HTTP Status Codes

CodeMeaning
200OK — request succeeded
201Created — resource created
202Accepted — async job queued
204No Content — successful with no body
400Bad Request — invalid request body
401Unauthorized — missing or invalid API key
403Forbidden — valid key, insufficient scope
404Not Found — resource does not exist
429Too Many Requests — rate limit exceeded
500Internal Error — server-side problem

Common Error Codes

CodeStatusDescription
UNAUTHORIZED401Missing or malformed API key
FORBIDDEN403Insufficient scope for this operation
VALIDATION_ERROR400Request body failed validation
VERIFICATION_NOT_FOUND404Verification ID not found for tenant
UNSUPPORTED_ID_TYPE400ID type not supported for country
TENANT_SUSPENDED403Tenant account is suspended
RATE_LIMIT_EXCEEDED429Too many requests
INTERNAL_ERROR500Unexpected server error
For 500 errors, include the request timestamp when contacting support at support@d-id.me.