Error Codes

Complete reference of error codes returned by the Lead Generation Service.

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

Lead ManagementLG_1000-1099

CodeHTTPNameDescriptionResolution
LG_1000404LEAD_NOT_FOUNDThe requested lead was not foundVerify the lead ID exists for this tenant
LG_1001409LEAD_ALREADY_EXISTSA lead with this email already existsUse the existing lead or merge duplicates
LG_1002400LEAD_INVALID_STATUSInvalid lead status transitionCheck allowed status transitions in API docs
LG_1003400LEAD_CONVERSION_FAILEDLead conversion to deal failedEnsure lead has required fields for conversion

FormsLG_1100-1199

CodeHTTPNameDescriptionResolution
LG_1100404FORM_NOT_FOUNDThe requested form was not foundVerify the form ID exists for this tenant
LG_1101409FORM_ALREADY_PUBLISHEDForm is already publishedUnpublish before making changes or create a new version
LG_1102400FORM_VALIDATION_FAILEDForm submission validation failedCheck required fields and field types
LG_1103400FORM_EMBED_INVALIDInvalid embed configurationCheck allowed domains and embed settings

CRM & DealsLG_1200-1299

CodeHTTPNameDescriptionResolution
LG_1200404DEAL_NOT_FOUNDThe requested deal was not foundVerify the deal ID exists for this tenant
LG_1201404PIPELINE_NOT_FOUNDThe requested pipeline was not foundVerify the pipeline ID exists for this tenant
LG_1202409CRM_CONNECTION_EXISTSCRM connection already configuredDisconnect existing CRM before adding a new one
LG_1203502CRM_SYNC_FAILEDCRM synchronization failedCheck CRM credentials and retry

Scoring & EnrichmentLG_1300-1399

CodeHTTPNameDescriptionResolution
LG_1300502ENRICHMENT_FAILEDLead enrichment from third-party failedRetry; enrichment provider may be temporarily unavailable
LG_1301402INSUFFICIENT_AI_CREDITSInsufficient AI credits for scoringPurchase additional AI credits via wallet-svc
LG_1302400SCORING_CONFIG_INVALIDInvalid scoring configurationCheck scoring rule weights and thresholds

AuthenticationLG_1400-1499

CodeHTTPNameDescriptionResolution
LG_1400401UNAUTHORIZEDAuthentication requiredProvide a valid JWT token in Authorization header
LG_1401403FORBIDDENInsufficient permissionsRequest required role from admin
LG_1402401INVALID_TOKENInvalid or expired authentication tokenObtain a fresh JWT token via auth-svc

Nurture & WebhooksLG_1500-1599

CodeHTTPNameDescriptionResolution
LG_1500404SEQUENCE_NOT_FOUNDThe requested nurture sequence was not foundVerify the sequence ID exists for this tenant
LG_1501400SEQUENCE_ALREADY_ACTIVENurture sequence is already activePause the sequence before modifying
LG_1502404WEBHOOK_NOT_FOUNDThe requested webhook was not foundVerify the webhook ID exists
LG_1503400WEBHOOK_DELIVERY_FAILEDWebhook delivery failedCheck webhook URL accessibility and response status

Bulk & ExportLG_1600-1699

CodeHTTPNameDescriptionResolution
LG_1600400BULK_IMPORT_FAILEDBulk import operation failedCheck CSV/JSON format and required fields
LG_1601400EXPORT_LIMIT_EXCEEDEDExport limit exceeded for current tierUpgrade subscription or reduce export scope

GeneralLG_1900-1999

CodeHTTPNameDescriptionResolution
LG_1900500INTERNAL_SERVER_ERRORInternal server errorRetry; if persistent, contact support with request_id
LG_1901503SERVICE_UNAVAILABLEService temporarily unavailableRetry with exponential backoff
LG_1902429RATE_LIMIT_EXCEEDEDRate limit exceededWait and retry after the rate limit window resets