Error
Every failure. Branch on code; message and nextAction are for humans and may change.
Fields
errorobjectalwayserror.codestringalwaysStable, 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.messagestringalwaysWhat went wrong.
error.requestIdstringalwaysEquals the X-Request-Id header. Quote it to support.
error.retryablebooleanalwaysTrue when the same request may succeed later without a change. Honour Retry-After when present.
error.nextActionstringalwaysWhat to do next.
error.purchasePurchaseLinksOnly with asset_not_licensed: where to buy the refused exercise.
error.purchase.exerciseUrlstringalwaysThe exercise's public page, where it can be bought on its own.
error.purchase.packsarray of PurchasePackalwaysThe packs on sale that contain the exercise, in packs-page order.
error.purchase.packs[].idstringalwaysPurchased pack id.
error.purchase.packs[].namestringalwaysDisplay name.
error.purchase.packs[].urlstringalwaysThe pack on the public packs page.
error.assetIdstringOnly with link_limit_exceeded: the asset whose download links for today are used up. Request the other files without it.