Every error response carries a type member, whose last path segment names the specific problem. That segment is the value to branch on in your client: it stays the same across releases, where the title and detail wording doesn't. The full URI takes the form:
https://problems.luna.akamaiapis.net/delivery-manager/v1/<problem-type>
This page lists the problem types this API sends. Generic transport failures use an http/ prefix, for example http/not-found, and arrive whenever the request fails before it reaches a resource. The types below are specific to Delivery Manager, and tell you more than the status code alone does.
| Problem type | Title | What it means |
|---|
missing-required-parameter | Missing required parameter | Your request omits a parameter the operation requires. The detail names it. |
invalid-name | Invalid name | The name you sent breaks the naming rules for that resource. The detail repeats the name and the rule. |
duplicate-group-id | Duplicate groupId | The same groupId appears in both defaultGroupId and additionalGroupIds. List a group in one or the other, not both. |
| Problem type | Title | What it means |
|---|
workspace-not-found | Workspace not found | No workspace of that name exists on the account. Names are case-sensitive. |
environment-not-found | Environment not found | The workspace exists, but holds no environment of that name. |
environment-version-not-found | Environment version not found | The environment exists, but not at the version you asked for. |
hostname-set-not-found | Hostname set not found | The workspace holds no hostname set of that name. |
custom-rule-set-not-found | Custom rule set not found | The environment holds no rule set of that name. |
route-not-found | Route not found | The route you referenced doesn't exist in this environment version. |
activation-not-found | Activation not found | No activation with that ID exists in this workspace. Check that you're polling the workspace you activated from. |
| Problem type | Title | What it means |
|---|
workspace-already-exists | Workspace already exists | A workspace of that name already exists on the account. Choose another name, or update the existing workspace. |
environment-already-exists | Environment already exists | The workspace already holds an environment of that name. |
hostname-set-already-exists | Hostname set already exists | The workspace already holds a hostname set of that name. |
custom-rule-set-already-exists | Custom rule set already exists | The environment already holds a rule set of that name. |
route-already-exists | Route already exists | The route you're adding duplicates one already in this environment version. |
resource-busy | Operation failed | An activation is in progress for this environment. Wait for it to finish, then retry. See 409. |
| Problem type | Title | What it means |
|---|
rate-limit-exceeded | Too many requests | You sent too many requests in a short period. Back off and retry. See 429. |
limit-exceeded | Too many ... | You reached a limit on how many of a resource your contract allows. Delete one before you create another. |
| Problem type | Title | What it means |
|---|
account-unknown | Unable to determine account | The API couldn't resolve the account for this request. Check the accountSwitchKey you sent, if any. |
user-unknown | User unknown | The API couldn't resolve the user for this request. Confirm the API client is still provisioned. |
📘Branch on type, not on title or detail. The detail interpolates values from your request, so its text differs call to call even for the same problem.