Error Codes

Complete reference of 35 error codes across 11 categories returned by the Analytics Service.

Error response formatjson
{
  "error": {
    "code": "ANALYTICS_1000",
    "message": "The requested metric was not found",
    "http": 404
  }
}

MetricsANALYTICS_1000-1099

CodeHTTPNameDescriptionResolution
ANALYTICS_1000404METRIC_NOT_FOUNDThe requested metric was not foundVerify the metric name and entity ID exist for this tenant
ANALYTICS_1001400INVALID_METRIC_TYPEInvalid metric type specifiedUse a valid metric type: traffic, engagement, transactions, revenue
ANALYTICS_1002400INVALID_TIME_RANGEInvalid time range specifiedEnsure startDate is before endDate and range does not exceed tier limits
ANALYTICS_1003400GRANULARITY_NOT_SUPPORTEDThe requested granularity is not supported for this time rangeUse a coarser granularity (hourly, daily, weekly, monthly) for longer ranges
ANALYTICS_1004400COMPARISON_LIMIT_EXCEEDEDToo many entities in comparison requestReduce the number of entities to compare (max 10)

DashboardANALYTICS_1100-1199

CodeHTTPNameDescriptionResolution
ANALYTICS_1100404DASHBOARD_NOT_FOUNDThe requested dashboard was not foundVerify the dashboard ID exists for this tenant
ANALYTICS_1101409DASHBOARD_ALREADY_EXISTSA dashboard with this name already existsUse a different name or update the existing dashboard
ANALYTICS_1102400DASHBOARD_TILE_LIMITMaximum number of tiles per dashboard exceededRemove existing tiles before adding new ones (max 20 per dashboard)
ANALYTICS_1103400INVALID_TILE_CONFIGInvalid tile configurationCheck tile type, data source, and visualization settings
ANALYTICS_1104423DASHBOARD_LOCKEDDashboard is currently locked for editingWait for the lock to be released or contact the lock holder

ForecastANALYTICS_1200-1299

CodeHTTPNameDescriptionResolution
ANALYTICS_1200404FORECAST_NOT_FOUNDThe requested forecast was not foundVerify the forecast ID or generate a new forecast
ANALYTICS_1201500FORECAST_GENERATION_FAILEDFailed to generate forecastRetry; the ML model may be temporarily unavailable
ANALYTICS_1202400INSUFFICIENT_DATANot enough historical data to generate a forecastEnsure at least 14 days of data exists for the entity
ANALYTICS_1203503MODEL_UNAVAILABLEThe forecasting model is currently unavailableRetry with exponential backoff; model may be updating
ANALYTICS_1204410FORECAST_EXPIREDThe forecast has expired and is no longer validGenerate a new forecast with current data

ReportANALYTICS_1300-1399

CodeHTTPNameDescriptionResolution
ANALYTICS_1300404REPORT_NOT_FOUNDThe requested report was not foundVerify the report ID exists for this tenant
ANALYTICS_1301500REPORT_GENERATION_FAILEDFailed to generate the reportRetry; check report parameters and data availability
ANALYTICS_1302400INVALID_FORMATInvalid export format specifiedUse a supported format: csv, xlsx, pdf, json
ANALYTICS_1303413EXPORT_SIZE_LIMITExport file size exceeds the allowed limitNarrow the date range or reduce the number of entities
ANALYTICS_1304409SCHEDULE_CONFLICTA scheduled report with this schedule already existsUse a different schedule or update the existing one

AuthenticationANALYTICS_1400-1499

CodeHTTPNameDescriptionResolution
ANALYTICS_1400401UNAUTHORIZEDAuthentication requiredProvide a valid JWT token in Authorization header
ANALYTICS_1401403FORBIDDENInsufficient permissionsRequest required role from admin
ANALYTICS_1402401INVALID_TOKENInvalid or expired authentication tokenObtain a fresh JWT token
ANALYTICS_1403403MISSING_PERMISSIONSRequired permissions are missingRequest the necessary permissions from admin

ValidationANALYTICS_1500-1599

CodeHTTPNameDescriptionResolution
ANALYTICS_1500400VALIDATION_FAILEDRequest validation failedCheck request body against API docs
ANALYTICS_1501400INVALID_INPUTInvalid input providedReview field constraints (type, min/max, pattern)
ANALYTICS_1502400MISSING_REQUIRED_FIELDRequired field is missingAdd the required field to the request body
ANALYTICS_1503400INVALID_DATE_RANGEInvalid date range specifiedEnsure startDate is before endDate and both are valid ISO 8601 dates
ANALYTICS_1504400INVALID_ENTITY_TYPEInvalid entity type specifiedUse a valid entity type: event, venue, destination, artist, campaign

AI ServiceANALYTICS_1600-1699

CodeHTTPNameDescriptionResolution
ANALYTICS_1600502AI_SERVICE_ERRORAI service encountered an errorRetry; AI service may be temporarily unavailable
ANALYTICS_1601502INSIGHT_GENERATION_FAILEDFailed to generate AI insightsCheck AI credits and retry
ANALYTICS_1602502PREDICTION_FAILEDFailed to generate ML predictionRetry; ensure sufficient historical data exists
ANALYTICS_1603402INSUFFICIENT_AI_CREDITSInsufficient AI credits to perform this operationPurchase additional AI credits or use non-AI features
ANALYTICS_1604504MODEL_TIMEOUTML model request timed outRetry with a simpler request or smaller dataset

Quota & Rate LimitingANALYTICS_1700-1799

CodeHTTPNameDescriptionResolution
ANALYTICS_1700429QUOTA_EXCEEDEDQuota limit exceeded for this operationUpgrade subscription tier or wait for quota reset
ANALYTICS_1701429RATE_LIMIT_EXCEEDEDRate limit exceededWait and retry after the rate limit window resets
ANALYTICS_1702402TIER_FEATURE_LOCKEDThis feature requires a higher subscription tierUpgrade your subscription to unlock this feature
ANALYTICS_1703402INSUFFICIENT_CREDITSInsufficient credits to perform this operationPurchase additional credits or use basic features

External ServiceANALYTICS_1800-1899

CodeHTTPNameDescriptionResolution
ANALYTICS_1800502EXTERNAL_SERVICE_ERRORExternal service errorRetry; the downstream service may be temporarily unavailable
ANALYTICS_1801502AIBRAIN_SERVICE_ERRORAI Brain service unavailableRetry; aibrain-svc may be restarting on ECS Fargate
ANALYTICS_1802502WALLET_SERVICE_ERRORWallet service unavailableRetry; wallet-svc may be temporarily unavailable
ANALYTICS_1803502KAFKA_PUBLISH_FAILEDFailed to publish event to KafkaRetry; Amazon MSK may be temporarily unavailable
ANALYTICS_1804502CACHE_ERRORCache operation failedRetry; ElastiCache Redis may be temporarily unavailable

DatabaseANALYTICS_1900-1999

CodeHTTPNameDescriptionResolution
ANALYTICS_1900500DATABASE_ERRORDatabase operation failedRetry; Aurora Serverless may be scaling up
ANALYTICS_1901500TRANSACTION_FAILEDDatabase transaction failedRetry the operation
ANALYTICS_1902409CONSTRAINT_VIOLATIONDatabase constraint violationCheck for unique constraint conflicts
ANALYTICS_1903504QUERY_TIMEOUTDatabase query timed outReduce query complexity or narrow the date range
ANALYTICS_1904500PARTITION_ERRORTable partition operation failedRetry; partition maintenance may be in progress

GeneralANALYTICS_2000-2099

CodeHTTPNameDescriptionResolution
ANALYTICS_2000500INTERNAL_SERVER_ERRORInternal server errorRetry; if persistent, contact support with request_id
ANALYTICS_2001503SERVICE_UNAVAILABLEService temporarily unavailableRetry with exponential backoff
ANALYTICS_2002504TIMEOUTRequest timeoutReduce request complexity or retry
ANALYTICS_2003503BOOTSTRAP_FAILEDService failed to bootstrapWait for service restart; check CloudWatch logs