Concepts
API reference
Errors
The error envelope and every error code, with its status.
{
"error": {
"type": "invalid_request_error",
"code": "VALIDATION_ERROR",
"message": "level must be one of l1, l2, l3, l4",
"param": "level",
"doc_url": "https://docs.didconnect.xyz/api-reference/errors#validation_error",
"request_id": "req_8f2c1e"
}
}| Field | |
|---|---|
type | invalid_request_error, authentication_error, permission_error, not_found_error, conflict_error, rate_limit_error, api_error |
code | Stable: switch on it |
message | For a person and a log. Do not parse it |
param | The field at fault, when there is one |
request_id | Quote it to support |
A resource of another project, mode or account answers 404, like one that does not exist.
Codes
| Code | Status | When |
|---|---|---|
UNAUTHORIZED | 401 | No key, or a key that is not valid |
PRODUCT_DISABLED | 403 | The product is not enabled for your account |
ACCESS_DENIED | 403 | The role of the member is not enough |
KYB_REQUIRED | 403 | A live key before your business is verified |
NOT_FOUND | 404 | No such resource in this project and mode |
VALIDATION_ERROR | 422 | The body or a parameter is not valid |
VERIFY_INVALID_TRANSITION | 409 | The session cannot move to this state, or it changed meanwhile |
VERIFY_FOUR_EYES_REQUIRED | 403 | The flow needs two reviewers of the dashboard |
VERIFY_FOUR_EYES_SAME_REVIEWER | 409 | The second approval is by the first reviewer |
VERIFY_ATTESTATION_ALREADY_REVOKED | 409 | Already revoked |
VERIFY_ALERT_ALREADY_RESOLVED | 409 | Already resolved |
VERIFY_PROOF_REQUEST_CLOSED | 409 | The proof request was answered, cancelled or expired |
NETWORK_AGREEMENT_REQUIRED | 403 | Reporting to the shared lists without the agreement |
LIVE_ONLY | 422 | The route works with a live key only |
CORTEX_UNAVAILABLE | 503 | Cortex cannot answer right now. Retry later |
RATE_LIMITED | 429 | Too many requests. Retry after Retry-After seconds |
INTERNAL_ERROR | 500 | An error of the API. Retry with the same idempotent identifier |

