Skip to content
Skip to content

Error

Every failure. Branch on code; message and nextAction are for humans and may change.

Fields

errorobjectalways
error.codestringalways

Stable, machine-readable error code. Branch on it.

One of
invalid_requestcursor_invalidauthentication_requiredinvalid_api_keyinsufficient_scopepurchase_requiredasset_not_licensednot_foundmethod_not_allowedpayload_too_largeunsupported_media_typerate_limit_exceededsample_busylink_limit_exceededapi_unavailableapi_disableddelivery_unavailableasset_not_availableinternal_error
error.messagestringalways

What went wrong.

error.requestIdstringalways

Equals the X-Request-Id header. Quote it to support.

error.retryablebooleanalways

True when the same request may succeed later without a change. Honour Retry-After when present.

error.nextActionstringalways

What to do next.

error.purchasePurchaseLinks

Only with asset_not_licensed: where to buy the refused exercise.

error.purchase.exerciseUrlstringalways

The exercise's public page, where it can be bought on its own.

error.purchase.packsarray of PurchasePackalways

The packs on sale that contain the exercise, in packs-page order.

error.purchase.packs[].idstringalways

Purchased pack id.

error.purchase.packs[].namestringalways

Display name.

error.purchase.packs[].urlstringalways

The pack on the public packs page.

error.assetIdstring

Only with link_limit_exceeded: the asset whose download links for today are used up. Request the other files without it.

Returned or accepted by