Errors

This section shows you how to handle the error responses the Delivery Manager API generates. It lists the range of HTTP response codes the API replies with, explains the likely cause of each one, and gives a representative response you can match your own against. Each operation in this reference links to the topic for every code it can return.

For problems remaining in the current API release, see Known issues.

Problem Details object

API operations respond with failure codes for a wide range of problems with the data you're trying to read or modify, everything from malformed JSON, to missing fields, to a mismatched If-Match digest. When an error occurs, this API responds with a Problem Details JSON object that follows the RFC 7807 specification, served with the application/problem+json content type.

A Problem Details object contains these members:

MemberRequiredDescription
typeYesIdentifies the error case. The final path segment is the stable problem type, for example environment-not-found. Treat the full URI as an identifier your client branches on, not as a link to follow.
titleYesA short summary of the error case. This value stays the same regardless of the specifics of your request, so don't parse it for details.
detailYesDiagnostic instructions to locate and fix the problem. This value interpolates values from your request, such as the name you sent.
statusYesThe HTTP status code that categorizes the error case, repeating the code in the response's status line.
instanceYesA unique value generated with each API call. Quote it when you contact ​Akamai​ support about a failed request.
errorsNoFor errors with more than one detected problem, this represents each as a nested Problem Details object with its own type, title, and detail.

This example shows an access error, where the identity running the API client lacks permission for the resource:

{
    "type": "https://problems.luna.akamaiapis.net/delivery-manager/v1/http/forbidden",
    "title": "Forbidden",
    "detail": "The authorization token you provided does not allow access to this resource.",
    "instance": "/delivery-manager/v1/workspaces/my-service/environments#abc12345abcc02a7",
    "status": 403
}
📘

The API sends no members beyond the ones in the table above. If you're moving a client over from the Property Manager API, drop any handling for schemaLink, schemaLocation, foundValue, allowedValues, limitKey, limit, or remaining. This API doesn't send them.

Reporting more than one problem

When a single request contains several problems, the API summarizes them in the top-level object and lists each one in the errors array. Fix every entry before you retry. This example shows a request that both omits a required member and reuses a group:

{
    "type": "https://problems.luna.akamaiapis.net/delivery-manager/v1/http/bad-request",
    "title": "Bad Request",
    "detail": "Your request contains 2 problems. Fix each one listed in the errors array, then retry.",
    "instance": "/delivery-manager/v1/workspaces/my-service/environments#abc12345abcc02a7",
    "status": 400,
    "errors": [
        {
            "type": "https://problems.luna.akamaiapis.net/delivery-manager/v1/missing-required-parameter",
            "title": "Missing required parameter",
            "detail": "Your request does not contain the required parameter 'displayName'."
        },
        {
            "type": "https://problems.luna.akamaiapis.net/delivery-manager/v1/duplicate-group-id",
            "title": "Duplicate groupId",
            "detail": "GroupId '12345' is present in both defaultGroupId and additionalGroupIds."
        }
    ]
}

Problem types

The type member is the value your client branches on. Its last path segment identifies the specific problem and stays the same across releases, even when the wording of title and detail changes. For the full catalogue of problem types this API sends, with the status code each one arrives under, see Problem types.

For general information on how ​​Akamai​​ APIs report errors, see Error response syntax.