Zum Inhalt springen

Error Handling

Zuletzt aktualisiert am

The STACKIT Domain Services API uses standardized HTTP status codes to indicate the success or failure of an API request. In the event of an error, the API returns a structured JSON object of type application/problem+json to help you identify the cause of the problem.

Every error response contains a machine-readable and human-readable body to simplify debugging.

The following table lists the most common status codes you might encounter:

If you attempt to create a DNS record in a zone that does not belong to your organization, the API will respond as follows:

{
"type": "forbidden",
"title": "Forbidden",
"status": 403,
"detail": "You do not have permission to access this resource.",
"instance": "/api/v1/organizations/85ba9ac6.../dns-zones/primary"
}