Error handling
Whenever a request to the Dedicated Networks API fails, the response tells you what went wrong in a machine-readable way. This page describes the shape of an error response; the full list of codes is on Error codes.
Error response structure
Every error response from the Dedicated Networks API has the content type application/problem+json (RFC 9457) and this structure:
title
string
Short, human-readable summary of the problem type.
status
int
The HTTP status code of the response.
detail
string
Human-readable explanation of this specific occurrence. Safe to show to a user.
code
string
Stable machine-readable error code: E followed by six digits, for example E020001.
traceId
string
Identifier of the request. Quote it when you contact i3D.net support.
Table 1: Error response structure
The same traceId value is also sent in the X-Request-Id response header of every response, successful or not, so it is available even when there is no body.
Error response example
{
"title": "Validation failure",
"status": 422,
"detail": "a public network requires explicit addressing.prefixes[] (family and size) - there is no default public prefix",
"code": "E020001",
"traceId": "0af7651916cd43dd8448eb211c80319c"
}Working with error codes
Key your error handling off
code, not offdetail. Codes are stable: a code's meaning never changes. Thedetailtext may be reworded.New codes may be added over time. Treat an unknown code as a generic failure of its HTTP status.
Errors from systems behind the API are mapped into this shape and never passed through. i3D.net can find the full detail in its logs using the
traceId.
HTTP status codes
400
The request names an unknown filter field, or a known field with an unsupported operator.
Fix the query; the detail lists the supported filters.
401
Your API key is missing or not valid.
Check the PRIVATE-TOKEN header and your IP whitelisting. See the note below.
404
The resource does not exist on your account, belongs to another account, or was deleted. The API never confirms that someone else's resource exists.
Check the UUID. After a completed delete, 404 is the expected answer.
409
The request is correct but the current state does not allow it: a UUID replayed with a different body, a delete blocked by addresses in use, a limit reached, a missing contract, a resource that i3D.net manages, or an edit while an operation is still pending.
Read the code. The same request may succeed once the state has changed.
422
The request body or a query value fails validation. The request can never succeed as written.
Fix the request; the detail names the field or value.
500
Something went wrong on the i3D.net side.
Retry later. If it persists, contact support with the traceId.
Table 2: HTTP status codes
Asynchronous failures
A create or delete that was accepted (202) can still fail later. That failure is not an HTTP error: the operation resource reports state: failed together with an error object, and a failed network or prefix shows the same error on its own representation.
error.code
Stable code in SCREAMING_SNAKE_CASE. The list is on Error codes.
error.message
Human-readable message, safe to display.
error.retryable
Whether repeating the request may succeed. Sent on the operation resource only.
Table 3: Operation error structure
When a create fails, the resource stays visible in state failed. Delete it and create a new one with a new UUID. When a delete fails, repeat the DELETE: it continues the teardown.
Retrying safely
GETrequests can always be retried.PUTcreates can be retried with the same UUID and the same body: a replay is answered with the same operation and never creates a duplicate.DELETEcan be repeated: it continues a running or failed teardown, and answers404once the teardown has completed.On
500, retry the same request after a short wait. If it persists, contact support with thetraceId.
Response headers
Every representation carries a strong ETag header. Every response, successful or not, carries an X-Request-Id header. Quote that value when you contact i3D.net support: it is how we find your request. On error responses the same value is in the traceId field of the body.
Last updated
Was this helpful?