Skip to main content

Error Response Format

All errors follow a consistent envelope:
{
  "result": "ERROR",
  "data": null,
  "code": "P-001",
  "message": "Policy group not found."
}

Common (C)

CodeHTTPDescription
C-001400Invalid input value
C-002405HTTP method not allowed
C-003404Requested resource not found
C-004500Internal server error
C-005400Invalid data type
C-006409Duplicate resource
C-007429Too many requests (TPS limit exceeded)

Auth (A)

CodeHTTPDescription
A-001401Authentication failed
A-002403Access denied
A-003401Invalid API key
A-004409Email already registered
A-005409Maximum API keys exceeded
A-006401Invalid email or password

Policy Engine (P)

CodeHTTPDescription
P-001404Policy group not found
P-002404Policy version not found
P-003400Policy execution failed
P-004400Policy version not approved
P-005404Policy rule not found
P-006400Cannot modify version (only DRAFT allowed)
P-007400Cannot publish with no rules
P-008400Operation not allowed in current status
P-009403Policy group is disabled
P-010400Rule reorder ID mismatch
P-013400No previous version available for rollback
P-014404Deployment history not found
P-015400Required facts missing from execution request

Billing (B)

CodeHTTPDescription
B-001404Plan not found
B-002404Subscription not found
B-003409Active subscription already exists
B-004400Invalid subscription status
B-005404Invoice not found
B-006500No payment processor for the requested currency
B-007502Payment processing failed
B-008403Service quota exceeded
B-009400Free plan cannot be canceled

Analytics (AN)

CodeHTTPDescription
AN-001500Simulation processing failed
AN-002404Dataset not found
AN-003400Dataset too large
AN-004400Dataset contains no records
AN-005400Invalid dataset format
AN-009404Simulation not found
AN-010400Only PENDING or RUNNING simulations can be canceled
AN-011400Only completed simulations can be exported

Action (ACT)

CodeHTTPDescription
ACT-001400Action parameters are empty
ACT-002400Reference variable refVar is required
ACT-003400Invalid calculation method (allowed: PERCENTAGE, AMOUNT)
ACT-004400Rate parameter required for PERCENTAGE method
ACT-005400Value parameter required for AMOUNT method
ACT-006400Invalid action type
ACT-007400Discount rate must be between 0 and 100
ACT-008400Point earning rate must be between 0 and 100
ACT-009400Integration ID required for external service actions

Fact Definition (FD)

CodeHTTPDescription
FD-001409Fact key already exists
FD-002404Fact not found
FD-003403System fact cannot be modified or deleted
FD-004400Invalid fact key format

Integration (INT)

CodeHTTPDescription
INT-001404Integration not found
INT-002409Integration name already exists
INT-003400Invalid integration configuration

Failure Log (FL)

CodeHTTPDescription
FL-001404Failure log not found
FL-002400Invalid failure log action
FL-003400Retry not supported for this failure type

Idempotency (I)

CodeHTTPDescription
I-001409Request already processed (duplicate idempotency key)
I-002409Request currently being processed

Member (M)

CodeHTTPDescription
M-001404Member not found
M-002403Email verification required
M-003403Account suspended
M-004403Account withdrawn
M-005400Invalid or expired verification code