Skip to content
Longplay
Docs
Browse docs / Error codes and recovery
On this page

Error codes and recovery

Server error codes, recovery actions, reasons and SDK client errors.

Markdown
API v1

Server error codes#

Error codes
codeHTTPRetryablerecoveryMeaning
INVALID_PROTOCOL_VERSION400Nofix_requestThe protocol header is malformed or disagrees with the SDK version header.
UNSUPPORTED_PROTOCOL_VERSION400Noupgrade_sdkThe protocol header is missing or unsupported.
PROTOCOL_RETIRED410Noupgrade_sdkThe protocol is retired; the request was not executed.
UNAUTHENTICATED401NoauthenticateThe credential is missing, invalid, expired or revoked.
FORBIDDEN403Nocheck_permissionsThe credential lacks the scope, the origin is not allowed, or a Customer credential selects another Customer.
SCOPE_MISMATCH403Nocheck_scopeThe App or environment does not match the credential.
INVALID_REQUEST400Nofix_requestThe body, fields or combination violate the contract.
NOT_FOUND404Nofix_requestThe resource does not exist in this scope.
CONFLICT409Noresolve_conflictState changed, an operation is in progress, or one ID was reused with different input.
PAYLOAD_TOO_LARGE413Nofix_requestThe request body exceeds the limit.
RATE_LIMITED429Yesretry_same_requestRate limit exceeded; retry the same request after Retry-After.
SERVICE_UNAVAILABLE503Yesretry_same_requestThe service is temporarily unavailable; retry the same request.
NOT_CONFIGURED501Noconfigure_integrationA required integration, such as a payment account, is not configured.
CAPABILITY_UNAVAILABLE501Nocheck_availabilityThe capability or execution mode is unavailable on this service (HTTP 501).
INTERNAL_ERROR500Norecover_operationThe outcome is unknown; read or recover the original operation by its ID.

Error codes

  • INVALID_PROTOCOL_VERSION

    HTTP
    400
    Retryable
    No
    recovery
    fix_request
    Meaning
    The protocol header is malformed or disagrees with the SDK version header.
  • UNSUPPORTED_PROTOCOL_VERSION

    HTTP
    400
    Retryable
    No
    recovery
    upgrade_sdk
    Meaning
    The protocol header is missing or unsupported.
  • PROTOCOL_RETIRED

    HTTP
    410
    Retryable
    No
    recovery
    upgrade_sdk
    Meaning
    The protocol is retired; the request was not executed.
  • UNAUTHENTICATED

    HTTP
    401
    Retryable
    No
    recovery
    authenticate
    Meaning
    The credential is missing, invalid, expired or revoked.
  • FORBIDDEN

    HTTP
    403
    Retryable
    No
    recovery
    check_permissions
    Meaning
    The credential lacks the scope, the origin is not allowed, or a Customer credential selects another Customer.
  • SCOPE_MISMATCH

    HTTP
    403
    Retryable
    No
    recovery
    check_scope
    Meaning
    The App or environment does not match the credential.
  • INVALID_REQUEST

    HTTP
    400
    Retryable
    No
    recovery
    fix_request
    Meaning
    The body, fields or combination violate the contract.
  • NOT_FOUND

    HTTP
    404
    Retryable
    No
    recovery
    fix_request
    Meaning
    The resource does not exist in this scope.
  • CONFLICT

    HTTP
    409
    Retryable
    No
    recovery
    resolve_conflict
    Meaning
    State changed, an operation is in progress, or one ID was reused with different input.
  • PAYLOAD_TOO_LARGE

    HTTP
    413
    Retryable
    No
    recovery
    fix_request
    Meaning
    The request body exceeds the limit.
  • RATE_LIMITED

    HTTP
    429
    Retryable
    Yes
    recovery
    retry_same_request
    Meaning
    Rate limit exceeded; retry the same request after Retry-After.
  • SERVICE_UNAVAILABLE

    HTTP
    503
    Retryable
    Yes
    recovery
    retry_same_request
    Meaning
    The service is temporarily unavailable; retry the same request.
  • NOT_CONFIGURED

    HTTP
    501
    Retryable
    No
    recovery
    configure_integration
    Meaning
    A required integration, such as a payment account, is not configured.
  • CAPABILITY_UNAVAILABLE

    HTTP
    501
    Retryable
    No
    recovery
    check_availability
    Meaning
    The capability or execution mode is unavailable on this service (HTTP 501).
  • INTERNAL_ERROR

    HTTP
    500
    Retryable
    No
    recovery
    recover_operation
    Meaning
    The outcome is unknown; read or recover the original operation by its ID.

CONFLICT can also arrive as 412 (reload state) or 425 (retry the same request later); SERVICE_UNAVAILABLE can be 408, 502, 503 or 504.

Recovery actions#

Meaning of `error.recovery`
recoveryNext step
fix_requestCorrect the request before sending again.
authenticateObtain a new credential: sign in again or issue a session.
check_permissionsGrant the Key the required scope or check the website origin.
check_scopeCheck the App UUID, environment and Customer.
resolve_conflictRead the latest state before deciding to retry.
reload_stateReload the resource before acting.
retry_same_requestRetry the same request and ID after Retry-After.
configure_integrationComplete the integration configuration in Console.
check_availabilityCheck that the capability is available on this service.
upgrade_sdkUpgrade to an SDK/protocol version the service supports.
recover_operationDo not create a new request; read the original operation or replay its ID and input.
contact_supportKeep the X-Request-Id and contact us.

Meaning of `error.recovery`

  • fix_request

    Next step
    Correct the request before sending again.
  • authenticate

    Next step
    Obtain a new credential: sign in again or issue a session.
  • check_permissions

    Next step
    Grant the Key the required scope or check the website origin.
  • check_scope

    Next step
    Check the App UUID, environment and Customer.
  • resolve_conflict

    Next step
    Read the latest state before deciding to retry.
  • reload_state

    Next step
    Reload the resource before acting.
  • retry_same_request

    Next step
    Retry the same request and ID after Retry-After.
  • configure_integration

    Next step
    Complete the integration configuration in Console.
  • check_availability

    Next step
    Check that the capability is available on this service.
  • upgrade_sdk

    Next step
    Upgrade to an SDK/protocol version the service supports.
  • recover_operation

    Next step
    Do not create a new request; read the original operation or replay its ID and input.
  • contact_support

    Next step
    Keep the X-Request-Id and contact us.

Reasons#

Optional `error.reason`
reasonMeaning
CAPABILITY_NOT_ENABLEDThe capability is not enabled for this App/environment.
INTEGRATION_MISSINGA required integration is missing.
PROVIDER_CREDENTIAL_REJECTEDThe payment provider rejected the configured credential.
PRICE_BINDING_REQUIREDThe Product lacks a price binding for this provider and currency.
IDEMPOTENCY_CONFLICTOne idempotency ID was used with different input.
RESULT_UNKNOWNThe outcome is unknown; recover the original operation instead of retrying.
STATE_CHANGEDThe resource state changed.
IDENTITY_CONTEXT_CHANGEDThe process identity changed before acceptance; settle the original request and reload the Run.
CUSTOMER_BINDING_CONFLICTThis Run is bound to another Customer; continue with the original account.
RUN_CONTRACT_MISMATCHThis Version uses a different execution contract; use its matching API.
OPERATION_IN_PROGRESSThe same operation is still in progress.
FUNNEL_VERSION_RETIREDThe pinned Funnel Version format is retired; publish a new Version.
FUNNEL_PAUSEDThe Funnel is paused and accepts no new starts; started Runs continue. Show it as temporarily unavailable, not as a purchase problem.

Optional `error.reason`

  • CAPABILITY_NOT_ENABLED

    Meaning
    The capability is not enabled for this App/environment.
  • INTEGRATION_MISSING

    Meaning
    A required integration is missing.
  • PROVIDER_CREDENTIAL_REJECTED

    Meaning
    The payment provider rejected the configured credential.
  • PRICE_BINDING_REQUIRED

    Meaning
    The Product lacks a price binding for this provider and currency.
  • IDEMPOTENCY_CONFLICT

    Meaning
    One idempotency ID was used with different input.
  • RESULT_UNKNOWN

    Meaning
    The outcome is unknown; recover the original operation instead of retrying.
  • STATE_CHANGED

    Meaning
    The resource state changed.
  • IDENTITY_CONTEXT_CHANGED

    Meaning
    The process identity changed before acceptance; settle the original request and reload the Run.
  • CUSTOMER_BINDING_CONFLICT

    Meaning
    This Run is bound to another Customer; continue with the original account.
  • RUN_CONTRACT_MISMATCH

    Meaning
    This Version uses a different execution contract; use its matching API.
  • OPERATION_IN_PROGRESS

    Meaning
    The same operation is still in progress.
  • FUNNEL_VERSION_RETIRED

    Meaning
    The pinned Funnel Version format is retired; publish a new Version.
  • FUNNEL_PAUSED

    Meaning
    The Funnel is paused and accepts no new starts; started Runs continue. Show it as temporarily unavailable, not as a purchase problem.

SDK client errors#

The SDKs raise these themselves; they are not error objects returned by the server. Network and timeout errors use recover_operation: a write may have committed, so read the original operation or replay its ID.

  • The recovery column is the actual error.recovery value.
  • Some server codes are also raised locally, such as INVALID_REQUEST, SCOPE_MISMATCH and CONFLICT; they mean the same as in the table above but have no HTTP status.
Local error codes
coderecoveryMeaning
TIMEOUTrecover_operationThe request timed out; a write may have committed.
NETWORK_ERRORrecover_operationThe network failed; a write may have committed.
HTTP_ERRORrecover_operationAn unrecognized error response arrived; a write may have committed.
INVALID_RESPONSErecover_operationThe response did not match the contract.
PROTOCOL_MISMATCHupgrade_sdkThe response declared a protocol other than the SDK's; upgrade the SDK.
INVALID_URLfix_requestInvalid baseUrl: use HTTPS (HTTP only on localhost) without credentials, a query or a fragment.
INVALID_TIMEOUTfix_requesttimeoutMs is not between 1 and 120000.
INVALID_TOKENauthenticateA credential is missing: no Server Key, Customer Token or Run credential was given.
SERVER_ONLYfix_requestA backend-only API was used in a browser, such as a Server Key, AI billing, a Campaign or a Funnel decision.
NOT_IDENTIFIEDauthenticateThe browser client has not called identify.
CUSTOMER_SESSION_REQUIREDauthenticateRecovering the original purchase requires a current Customer session; sign in as the same Customer and resume recovery.
EXECUTION_POLICY_REFUSEDfix_requestThe current execution policy refuses this operation; correct the policy before continuing the original purchase.
IDENTITY_CHANGEDreload_stateidentify or reset was called, or the view closed, while the request was in flight; the result was discarded, so read the state again.
EVENT_QUEUE_FULLretry_same_request500 events are waiting; call flush() first.
COMMAND_PENDINGrecover_operationA previous Funnel or purchase command has no result yet; retry the original request before sending another.
COMMAND_STORAGE_CONFLICTresolve_conflictAnother page changed the same Run's pending command.
COMMAND_STORAGE_INVALIDfix_requestThe storage for pending commands is unavailable or invalid.
PURCHASE_PENDINGrecover_operationThe original purchase is unresolved; recover its Start, Run or Operation before starting another purchase.
PURCHASE_STORAGE_CONFLICTresolve_conflictAnother page changed the original purchase record; reread the shared record and resolve the conflict before continuing.
PURCHASE_STORAGE_INVALIDrecover_operationThe original purchase record is missing, invalid or unavailable; retain the unknown outcome and recover the original operation before starting another purchase.
DECISION_PENDINGrecover_operationWaiting for a Funnel decision timed out (FunnelDecisionTimeoutError); read the same decision ID later or retry the original request ID.
DECISION_ACCEPTANCE_UNKNOWNrecover_operationIt is unknown whether the decision request was accepted; retry with the original request ID and input.
DECISION_FAILEDcontact_supportThe Funnel decision failed.
EVALUATION_MODEreload_stateThe call does not match the Funnel's evaluation mode, for example Local evaluation of a Remote Funnel.
SERVER_REQUIREDfix_requestThis Funnel needs server execution and cannot finish in the browser alone.
FUNNEL_STOPPEDcheck_availabilityThe Funnel is paused or unavailable.
RUN_RECONCILIATION_REQUIREDrecover_operationThe Run's control state changed, for example a pause or stop; read the original Run before continuing.
CONFIGURATION_UNAVAILABLEcheck_availabilityThe public configuration that Local mode needs is unavailable.
CONFIGURATION_EXPIREDreload_stateThe Local rules expired; refresh them before using the result.
CONFIGURATION_CHANGEDreload_stateThe public configuration changed while in use; refresh it before evaluating.
CONFIGURATION_DISPOSEDreload_stateThe configuration manager was destroyed; create a new one.
UNSUPPORTED_SCHEMAupgrade_sdkThe public configuration format is newer than this SDK; upgrade the SDK.
STICKY_SAVE_FAILEDretry_same_requestA sticky assignment was not saved, so this evaluation cannot be used.
TRANSITION_LIMITresolve_conflictThe Local Funnel exceeded its transition budget.
PRECONDITION_FAILEDreload_stateThe Paywall visit, the purchase selection or the current screen changed during the action; read the current state and try again.
PRODUCT_UNAVAILABLEfix_requestThe selected Product is not available; choose an available one.
COUPON_UNAVAILABLEreload_stateThe Coupon bound to the purchase button is no longer available; read the Paywall again before purchasing.
PAYWALL_UNAVAILABLEcheck_availabilityThe published Paywall is unavailable.
ROUTE_UNAVAILABLEcheck_availabilityThis Funnel Version delivers no route; the Run started at the click still decides its first screen.
PURCHASE_HANDLER_REQUIREDfix_requestNo purchase handler (merchant or native) was provided.
EVENT_HANDLER_REQUIREDfix_requestA required event handler was not provided.
CLOSEDfix_requestThe Paywall or native host has closed.
BRIDGE_UNAVAILABLEcheck_availabilityThe native bridge is unavailable.
INVALID_CONFIGURATIONfix_requestThe native host's API origin or surface is invalid.
INVALID_STATEreload_stateInstallation credentials or local sequence state are invalid; reload and validate installation state through the trusted host.
NATIVE_OPERATION_FAILEDcontact_supportA native operation did not finish.
AI_PRICE_UNAVAILABLEfix_requestThe model's published price is missing or too precise to use.
AI_USAGE_UNAVAILABLErecover_operationThe provider's token usage is missing or inconsistent, so it cannot be billed.
AI_PROVIDER_ERRORcheck_availabilityThe model provider returned an error.
AI_BALANCE_REJECTEDresolve_conflictUsage was recorded, but the balance operation was rejected.

Local error codes

  • TIMEOUT

    recovery
    recover_operation
    Meaning
    The request timed out; a write may have committed.
  • NETWORK_ERROR

    recovery
    recover_operation
    Meaning
    The network failed; a write may have committed.
  • HTTP_ERROR

    recovery
    recover_operation
    Meaning
    An unrecognized error response arrived; a write may have committed.
  • INVALID_RESPONSE

    recovery
    recover_operation
    Meaning
    The response did not match the contract.
  • PROTOCOL_MISMATCH

    recovery
    upgrade_sdk
    Meaning
    The response declared a protocol other than the SDK's; upgrade the SDK.
  • INVALID_URL

    recovery
    fix_request
    Meaning
    Invalid baseUrl: use HTTPS (HTTP only on localhost) without credentials, a query or a fragment.
  • INVALID_TIMEOUT

    recovery
    fix_request
    Meaning
    timeoutMs is not between 1 and 120000.
  • INVALID_TOKEN

    recovery
    authenticate
    Meaning
    A credential is missing: no Server Key, Customer Token or Run credential was given.
  • SERVER_ONLY

    recovery
    fix_request
    Meaning
    A backend-only API was used in a browser, such as a Server Key, AI billing, a Campaign or a Funnel decision.
  • NOT_IDENTIFIED

    recovery
    authenticate
    Meaning
    The browser client has not called identify.
  • CUSTOMER_SESSION_REQUIRED

    recovery
    authenticate
    Meaning
    Recovering the original purchase requires a current Customer session; sign in as the same Customer and resume recovery.
  • EXECUTION_POLICY_REFUSED

    recovery
    fix_request
    Meaning
    The current execution policy refuses this operation; correct the policy before continuing the original purchase.
  • IDENTITY_CHANGED

    recovery
    reload_state
    Meaning
    identify or reset was called, or the view closed, while the request was in flight; the result was discarded, so read the state again.
  • EVENT_QUEUE_FULL

    recovery
    retry_same_request
    Meaning
    500 events are waiting; call flush() first.
  • COMMAND_PENDING

    recovery
    recover_operation
    Meaning
    A previous Funnel or purchase command has no result yet; retry the original request before sending another.
  • COMMAND_STORAGE_CONFLICT

    recovery
    resolve_conflict
    Meaning
    Another page changed the same Run's pending command.
  • COMMAND_STORAGE_INVALID

    recovery
    fix_request
    Meaning
    The storage for pending commands is unavailable or invalid.
  • PURCHASE_PENDING

    recovery
    recover_operation
    Meaning
    The original purchase is unresolved; recover its Start, Run or Operation before starting another purchase.
  • PURCHASE_STORAGE_CONFLICT

    recovery
    resolve_conflict
    Meaning
    Another page changed the original purchase record; reread the shared record and resolve the conflict before continuing.
  • PURCHASE_STORAGE_INVALID

    recovery
    recover_operation
    Meaning
    The original purchase record is missing, invalid or unavailable; retain the unknown outcome and recover the original operation before starting another purchase.
  • DECISION_PENDING

    recovery
    recover_operation
    Meaning
    Waiting for a Funnel decision timed out (FunnelDecisionTimeoutError); read the same decision ID later or retry the original request ID.
  • DECISION_ACCEPTANCE_UNKNOWN

    recovery
    recover_operation
    Meaning
    It is unknown whether the decision request was accepted; retry with the original request ID and input.
  • DECISION_FAILED

    recovery
    contact_support
    Meaning
    The Funnel decision failed.
  • EVALUATION_MODE

    recovery
    reload_state
    Meaning
    The call does not match the Funnel's evaluation mode, for example Local evaluation of a Remote Funnel.
  • SERVER_REQUIRED

    recovery
    fix_request
    Meaning
    This Funnel needs server execution and cannot finish in the browser alone.
  • FUNNEL_STOPPED

    recovery
    check_availability
    Meaning
    The Funnel is paused or unavailable.
  • RUN_RECONCILIATION_REQUIRED

    recovery
    recover_operation
    Meaning
    The Run's control state changed, for example a pause or stop; read the original Run before continuing.
  • CONFIGURATION_UNAVAILABLE

    recovery
    check_availability
    Meaning
    The public configuration that Local mode needs is unavailable.
  • CONFIGURATION_EXPIRED

    recovery
    reload_state
    Meaning
    The Local rules expired; refresh them before using the result.
  • CONFIGURATION_CHANGED

    recovery
    reload_state
    Meaning
    The public configuration changed while in use; refresh it before evaluating.
  • CONFIGURATION_DISPOSED

    recovery
    reload_state
    Meaning
    The configuration manager was destroyed; create a new one.
  • UNSUPPORTED_SCHEMA

    recovery
    upgrade_sdk
    Meaning
    The public configuration format is newer than this SDK; upgrade the SDK.
  • STICKY_SAVE_FAILED

    recovery
    retry_same_request
    Meaning
    A sticky assignment was not saved, so this evaluation cannot be used.
  • TRANSITION_LIMIT

    recovery
    resolve_conflict
    Meaning
    The Local Funnel exceeded its transition budget.
  • PRECONDITION_FAILED

    recovery
    reload_state
    Meaning
    The Paywall visit, the purchase selection or the current screen changed during the action; read the current state and try again.
  • PRODUCT_UNAVAILABLE

    recovery
    fix_request
    Meaning
    The selected Product is not available; choose an available one.
  • COUPON_UNAVAILABLE

    recovery
    reload_state
    Meaning
    The Coupon bound to the purchase button is no longer available; read the Paywall again before purchasing.
  • PAYWALL_UNAVAILABLE

    recovery
    check_availability
    Meaning
    The published Paywall is unavailable.
  • ROUTE_UNAVAILABLE

    recovery
    check_availability
    Meaning
    This Funnel Version delivers no route; the Run started at the click still decides its first screen.
  • PURCHASE_HANDLER_REQUIRED

    recovery
    fix_request
    Meaning
    No purchase handler (merchant or native) was provided.
  • EVENT_HANDLER_REQUIRED

    recovery
    fix_request
    Meaning
    A required event handler was not provided.
  • CLOSED

    recovery
    fix_request
    Meaning
    The Paywall or native host has closed.
  • BRIDGE_UNAVAILABLE

    recovery
    check_availability
    Meaning
    The native bridge is unavailable.
  • INVALID_CONFIGURATION

    recovery
    fix_request
    Meaning
    The native host's API origin or surface is invalid.
  • INVALID_STATE

    recovery
    reload_state
    Meaning
    Installation credentials or local sequence state are invalid; reload and validate installation state through the trusted host.
  • NATIVE_OPERATION_FAILED

    recovery
    contact_support
    Meaning
    A native operation did not finish.
  • AI_PRICE_UNAVAILABLE

    recovery
    fix_request
    Meaning
    The model's published price is missing or too precise to use.
  • AI_USAGE_UNAVAILABLE

    recovery
    recover_operation
    Meaning
    The provider's token usage is missing or inconsistent, so it cannot be billed.
  • AI_PROVIDER_ERROR

    recovery
    check_availability
    Meaning
    The model provider returned an error.
  • AI_BALANCE_REJECTED

    recovery
    resolve_conflict
    Meaning
    Usage was recorded, but the balance operation was rejected.