Stable reason code
A stable error code is used in client logic, reporting and automatic enquiry routing.
A unified model for responses, error codes, temporary failures, unknown outcomes, diagnostics and safe recovery for iGaming integrations.
Check the HTTP status, reason code, error category and operation state.
Record the request and operation identifiers, endpoint, time, provider reference and safe parameters.
Correct the data, stop the operation, retry after a delay or check the current state.
Prevent duplicates, reconcile results, notify responsible teams and close the root cause.
An HTTP 400 or 500 response alone is not enough. A reliable API returns a stable reason code, links the response to a request identifier and makes it clear whether data must be corrected, the operation stopped, the request retried or its state checked separately.
A stable error code is used in client logic, reporting and automatic enquiry routing.
The error category indicates whether the request can be retried and what data needs to change.
Request, operation and provider identifiers link client logs with internal systems and support.
The response should be compact, stable and suitable for automated processing without exposing internal implementation or sensitive data.
A stable identifier for the reason that does not change when the explanatory message is edited.
A brief, safe explanation without internal code, database queries, secrets or unnecessary detail.
A unique identifier for locating the operation in logs and contacting support.
An allowed status, limit, current state or safe reason for rejection.
An explicit indication of a temporary error that does not remove duplicate protection for the operation.
A recommended delay in seconds or an HTTP header for rate limiting and temporary unavailability.
A list of problematic fields with a reason code, value path and safe explanation.
A permanent link or section identifier describing the cause and how to fix it.
The HTTP status indicates the general outcome class, while the internal code identifies the specific cause and permitted action.
Invalid format, a missing required field, an unsupported value, incorrect amount precision or an invalid request structure.
A missing, expired or invalid token, API key, signature, request timestamp or nonce.
The client is recognized but does not have the required role, brand, market or permission for the action.
A player, payment, round, KYC check, provider or other object does not exist or is not available to the client.
The object's version or state has changed, or the operation identifier has already been used with different parameters.
Insufficient balance, exceeded limit, blocked player, prohibited market or invalid status transition.
The permitted request count for the client, method, role or critical operation has been exceeded.
The external service is unavailable, responds slowly or is temporarily not accepting operations.
An unexpected platform error without exposing internal details, but with an identifier for diagnostics.
A retry is safe only after identifying the error type and checking whether the original operation may already have completed.
Data, permission and business-rule errors usually require the request to be corrected rather than resent.
Retrying a financial, gaming or other critical operation must not create a new result.
Intervals increase progressively, respect the server-provided delay and limit the total number of attempts.
After all attempts are exhausted, the operation is recorded as incomplete and sent for manual review or reconciliation.
If the connection drops after a request is sent, the outcome may remain unknown. Before retrying, check the state using the operation identifier or wait for a trusted notification.
Diagnostics should reconstruct the request path between the platform, adapter and external provider without storing unnecessary sensitive data.
The test environment should reproduce every important error category and confirm correct client, retry and control behavior.
Missing fields, invalid types, unsupported values, amount precision and multiple simultaneous errors.
Invalid key, expired token, incorrect signature, unauthorised role, blocked IP and reused nonce.
Connection failure before sending, after the operation is accepted and while receiving the final response.
HTTP 429, recommended delay, concurrent requests and recovery after the limit expires.
Unavailability, maintenance, invalid response, delayed notification and conflicting status.
Limiting attempt count, increasing delays, temporarily stopping requests, controlled recovery and manual escalation.
A production integration is launched after validating the error structure, client behavior, duplicate protection and diagnostics.
Send us your current HTTP responses, error codes, retry rules and problematic scenarios. APIACE will help define a unified error model, safe recovery and control approach.