Docs Platform

Errors

The error format, every status you can see, and how to handle them.

Errors are RFC 9457 problem details with Content-Type: application/problem+json.

{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "detail": "Some fields are invalid",
  "errors": [{ "field": "slug", "message": "must match \"[a-z0-9][a-z0-9-]{0,100}\"" }]
}

detail is safe to show to a developer. errors appears on validation failures. problems appears on a failed publish.

Status Meaning What to do
400 The request is invalid Fix it using errors or detail. Don’t retry unchanged.
401 Missing, invalid or expired credential Sign in again or check the key.
403 Authenticated but not allowed Check the endpoint’s Access line and the key’s scopes.
404 Not found, or not yours Another tenant’s or person’s resource looks the same as a missing one.
409 The state conflicts A duplicate slug, a frozen version, no free seats. Read detail.
410 Gone Used or expired invitation, revoked certificate.
415 Unsupported media type File type not on the upload allow-list.
422 Understood but not allowed A draft that can’t be published; problems lists everything.
5xx Our side Safe to retry reads; for writes, retry idempotent calls (see below).

Retrying safely#

  • Reads are always safe to retry.
  • POST /organizations/{id}/licenses is idempotent on externalRef.
  • Enrollments reject a duplicate active enrollment with 409, so retrying a lost response is safe.
  • Other creates are not idempotent. Check before retrying a timeout.

Not found on purpose#

We return 404, not 403, for resources that exist but belong to someone else. That avoids confirming that an id is real.

Type to search guides and every endpoint.