Errors
Every failed request returns the same JSON body, whatever went wrong:
{
"code": "FEATURE_NOT_LICENSED",
"message": "This account's licence does not cover this operation.",
"requestId": "6f1c0a52-3b7e-4c1d-9a55-2d8e4b7a90c3"
}
code is a stable identifier — branch on it. New values are added over time, existing
ones are never renamed, so treat a code you do not recognise as the generic failure for
its status rather than as an error in itself.
message explains the failure in plain language and is written for a person, not for
code. Its wording may change at any time, so never match on it.
requestId is the same value as the response's X-Request-Id header — see Request IDs.
What to do with each status
400, 404, 409, 412 and 413 mean the request needs changing; sending it again unaltered
will fail the same way. 401 and 403 are account or token states — the codes below say
which, and most are resolved by your account administrator rather than by the caller.
429, 503 and 504 are worth retrying, with a backoff.
Retry 429 only after the delay in Retry-After — see
Rate limiting.
Codes
Request problems — 400, 413
| Code | What happened |
|---|---|
PAYLOAD_TOO_LARGE |
413 — the request body is over 1 MiB. Send fewer items per request |
SCHEMA_VALIDATION_FAILED |
A field in the body, or a parameter, does not match what the endpoint accepts, or the body carries a property the endpoint does not list. message names the field and the rule it broke |
PARAMETER_FORMAT_INVALID |
A path or query parameter could not be read as its declared type |
INVALID_PAYLOAD |
The request could not be processed, and no more specific code applies |
PAGE_TOKEN_INVALID |
The pageToken is not one this endpoint issued, or it has expired. Start again from the first page |
EXPAND_UNKNOWN |
An expand value is not one this endpoint offers. message lists the accepted values |
PAGE_SIZE_EXCEEDED |
pageSize is above the limit that applies when expand is used. Request a smaller page |
RESULT_SET_TOO_LARGE |
The expanded objects would not fit in one page. Request a smaller page |
REQUEST_COST_EXCEEDED |
The request costs more than your rate limit allows in one call, so waiting would not help. X-RateLimit-Limit and X-RateLimit-Cost show the gap. Send fewer items, or fewer expand values |
Authentication — 401
| Code | What happened |
|---|---|
UNAUTHORIZED |
The access token is missing, malformed, expired, or no longer valid |
There is deliberately only one code here. The response does not distinguish a missing token from an invalid one.
Access — 403
| Code | What happened |
|---|---|
PERMISSION_DENIED |
The token does not carry the access this operation needs |
LICENCE_MISSING |
The account has no Catapult Developer Platform licence |
LICENCE_INACTIVE |
The account's Catapult Developer Platform licence is not active, or has passed its expiry date |
FEATURE_NOT_LICENSED |
The account's licence does not cover this operation |
FEATURE_NOT_CONSENTED |
The app was not granted the feature this operation needs when consent was given |
SEAT_NOT_APPROVED |
The user has no approved Catapult Developer Platform seat, or the seat backing this token is no longer approved |
TOKEN_PREDATES_SEATS |
The token was issued before seats existed. Issue a new token to continue |
PAT_LIMIT_REACHED |
The seat already holds as many personal access tokens as it is allowed. Revoke one before issuing another |
TOKEN_PREDATES_SEATS and PAT_LIMIT_REACHED have fixes the caller can apply. The rest are
account states — see Feature gating.
The resource — 404, 409, 412
| Code | Status | What happened |
|---|---|---|
NOT_FOUND |
404 |
No resource with that identifier, or it is not visible to this account |
DUPLICATE |
409 |
A resource with these details already exists |
REFERENCE_EXISTS |
412 |
Other records still reference this resource, so the request cannot run yet |
Throttling and availability
| Code | Status | What happened |
|---|---|---|
RATE_LIMITED |
429 |
A rate limit was exceeded — see Rate limiting |
INTERNAL |
500 |
The request failed for a reason on our side. Retrying is safe but may not help |
NOT_IMPLEMENTED |
501 |
The operation is not available |
SERVICE_UNAVAILABLE |
503 |
The service is temporarily unavailable, or your limits could not be resolved. Retry with a backoff |
TIMEOUT |
504 |
The request took too long to complete. Retry with a backoff |
REQUEST_CANCELLED |
499 |
The connection closed before the response was ready, usually because the caller timed out first |
Request IDs
Every response carries an X-Request-Id header. You can send your own value in the same header (1–128
characters of letters, digits, ., _ or -) to correlate our responses with your logs; any other value
is replaced. Error bodies also carry the value as requestId. Include the request ID when you contact
support about a specific call.