Problem types

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.

400 Bad Request

Problem typeTitleWhat it means
missing-required-parameterMissing required parameterYour request omits a parameter the operation requires. The detail names it.
invalid-nameInvalid nameThe name you sent breaks the naming rules for that resource. The detail repeats the name and the rule.
duplicate-group-idDuplicate groupIdThe same groupId appears in both defaultGroupId and additionalGroupIds. List a group in one or the other, not both.

404 Not Found

Problem typeTitleWhat it means
workspace-not-foundWorkspace not foundNo workspace of that name exists on the account. Names are case-sensitive.
environment-not-foundEnvironment not foundThe workspace exists, but holds no environment of that name.
environment-version-not-foundEnvironment version not foundThe environment exists, but not at the version you asked for.
hostname-set-not-foundHostname set not foundThe workspace holds no hostname set of that name.
custom-rule-set-not-foundCustom rule set not foundThe environment holds no rule set of that name.
route-not-foundRoute not foundThe route you referenced doesn't exist in this environment version.
activation-not-foundActivation not foundNo activation with that ID exists in this workspace. Check that you're polling the workspace you activated from.

409 Conflict

Problem typeTitleWhat it means
workspace-already-existsWorkspace already existsA workspace of that name already exists on the account. Choose another name, or update the existing workspace.
environment-already-existsEnvironment already existsThe workspace already holds an environment of that name.
hostname-set-already-existsHostname set already existsThe workspace already holds a hostname set of that name.
custom-rule-set-already-existsCustom rule set already existsThe environment already holds a rule set of that name.
route-already-existsRoute already existsThe route you're adding duplicates one already in this environment version.
resource-busyOperation failedAn activation is in progress for this environment. Wait for it to finish, then retry. See 409.

429 Too Many Requests

Problem typeTitleWhat it means
rate-limit-exceededToo many requestsYou sent too many requests in a short period. Back off and retry. See 429.
limit-exceededToo many ...You reached a limit on how many of a resource your contract allows. Delete one before you create another.

500 Internal Server Error

Problem typeTitleWhat it means
account-unknownUnable to determine accountThe API couldn't resolve the account for this request. Check the accountSwitchKey you sent, if any.
user-unknownUser unknownThe 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.