KIVEX

Errors

Every error code, when it happens and its HTTP status.

Errors share one body. NOT_SUPPORTED means the site cannot do it and lists alternatives; NOT_ALLOWED means the caller may not and gives a reason.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "BAD_REQUEST",
            "NOT_FOUND",
            "UNKNOWN",
            "NOT_SUPPORTED",
            "NOT_ALLOWED",
            "SUBJECT_REQUIRED",
            "QUOTE_EXPIRED",
            "PRICE_CHANGED",
            "OUT_OF_STOCK",
            "NEEDS_CONFIRMATION",
            "CONFIRMATION_STALE",
            "CONFIRMATION_EXPIRED",
            "CONFIRMATION_MISMATCH",
            "IDEMPOTENCY_CONFLICT",
            "SOURCE_UNAVAILABLE",
            "RATE_LIMITED"
          ]
        },
        "reason": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "actor_level",
                "handoff_held",
                "handoff_not_active",
                "operator_disabled",
                "plan",
                "subject_required_delegation",
                "suspended"
              ]
            },
            {
              "type": "string",
              "enum": [
                "knowledge_updating"
              ]
            }
          ]
        },
        "message": {
          "type": "string"
        },
        "alternatives": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
          }
        },
        "retryAfterMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "requestId": {
          "type": "string"
        },
        "docsUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "code",
        "docsUrl"
      ]
    }
  },
  "required": [
    "error"
  ]
}
CodeHTTPMeaning
BAD_REQUEST400The request does not match the capability's input schema.
NOT_FOUND404The site or resource does not exist for this caller. A resource owned by someone else is reported the same way, so existence cannot be probed.
UNKNOWN404KIVEX has no evidence for the requested value. It never guesses.
NOT_SUPPORTED422The site cannot do this. alternatives lists capabilities that can help instead.
NOT_ALLOWED403The caller may not do this. reason says why.
SUBJECT_REQUIRED401The capability acts for a signed-in person and the request carries none.
QUOTE_EXPIRED409The quote is no longer valid. Request a new one.
PRICE_CHANGED409A price changed after the quote. Request a new quote.
OUT_OF_STOCK409An item is no longer available.
NEEDS_CONFIRMATION409A person has to confirm the action first. The response says where.
CONFIRMATION_STALE409The data changed after the preview was confirmed. Request a new preview.
CONFIRMATION_EXPIRED410The confirmation is no longer valid.
CONFIRMATION_MISMATCH409The confirmation belongs to a different action, resource, amount or person.
IDEMPOTENCY_CONFLICT409The idempotency key was already used with different arguments.
SOURCE_UNAVAILABLE503The source of truth for this value is unreachable. KIVEX never serves stale data as current. reason may say why, e.g. knowledge_updating.
RATE_LIMITED429Too many requests. Retry after retryAfterMs.

Reasons for NOT_ALLOWED

ReasonMeaning
actor_levelThe caller's actor level is not allowed to use this capability.
handoff_heldSomeone else is handling this conversation: an operator in the Hub or another system. It is free again after handoff.ended.
handoff_not_activeThis conversation is not handed over to you: take it over first, or it has ended.
operator_disabledThe site operator switched this capability off.
planThe site's plan does not include this capability.
subject_required_delegationActing for a signed-in person requires a delegation from that person.
suspendedAccess to the site is suspended.

Reasons for SOURCE_UNAVAILABLE

ReasonMeaning
knowledge_updatingThe site's knowledge is being updated right now. Retry after retryAfterMs.

On this page