title: Error Codes

description: Complete list of Wontopos API error codes, HTTP statuses, and resolutions.

Error Codes

All API errors include a machine-readable code field for programmatic handling.

Authentication errors

CodeHTTP StatusDescriptionResolution
authentication_failed401No valid API key providedCheck the Authorization header
api_key_expired401The API key has expiredGenerate a new key in the dashboard
api_key_revoked401The API key has been deletedCreate a new API key
insufficient_scope403API key lacks the required scopeAdd the required scope to your key

Request errors

CodeHTTP StatusDescriptionResolution
invalid_parameter400A request parameter is invalidCheck parameter types and values
missing_parameter400A required parameter is missingInclude all required fields
invalid_json400Request body is not valid JSONFix JSON syntax
not_found404The requested resource does not existVerify the resource ID
method_not_allowed405HTTP method not supportedUse a supported method
conflict409Resource already existsUse a unique identifier
unprocessable_entity422Valid format but semantic errorCheck business logic constraints

Rate limit errors

CodeHTTP StatusDescriptionResolution
rate_limit_exceeded429Too many requests per minuteWait for Retry-After seconds
quota_exceeded429Daily request quota exhaustedUpgrade plan or wait until reset

Server errors

CodeHTTP StatusDescriptionResolution
internal_error500Unexpected server errorRetry or contact support
service_unavailable503API is temporarily unavailableRetry with backoff
gateway_timeout504Upstream API timed outRetry or check status page

Request ID

Always include the `request_id` from the error response when contacting support. It helps us locate the exact request in our logs.