Error Codes & Responses

HTTP status codes, machine-readable error contracts, and failure handling for SiftlyAPI.

HTTP Status Codes

CodeMeaningWhen
200SuccessRequest processed successfully and score calculated
400Bad RequestInvalid JSON, missing required fields (email, ip_address), invalid IP format, or field length bounds exceeded
401UnauthorizedMissing, invalid, or revoked API key
409ConflictA request with the same Idempotency-Key is currently in progress
413Payload Too LargeRequest body exceeds maximum size limit of 64KB
429Rate LimitedPer-minute burst rate limit exceeded or monthly plan quota exhausted
500Server ErrorInternal server error occurred while processing the request
503UnavailableServer overloaded at maximum concurrent capacity or critical pipeline unavailable

Standardized Error Contract

All non-200 responses return a unified JSON payload designed for both legacy string parsing and programmatic machine evaluation:

Standard Error Schema
{
"error": "Rate limit exceeded. Too many requests per minute. Please slow down.",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Too many requests per minute. Please slow down.",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}
FieldTypeDescription
errorstringHuman-readable error description (maintained for legacy backward compatibility)
codestringMachine-readable snake_case identifier for deterministic branching
messagestringDetailed error message explaining the root cause
request_iduuidCorrelation ID matching X-Request-ID for tracing and support

Machine-Readable Error Codes

CodeHTTP StatusDescriptionRecommended Client Action
unauthorized401Missing, invalid, or revoked API keyVerify X-API-Key or Authorization: Bearer header against the dashboard
rate_limit_exceeded429Per-minute burst rate limit exceededInspect Retry-After response header and pause requests for the specified seconds
monthly_quota_exceeded429Monthly plan evaluation allowance exhaustedUpgrade subscription plan in dashboard or wait for Quota-Reset date
payload_too_large413Request body exceeds 64KB limitTrim unnecessary fields from JSON request payload
missing_required_fields400email or ip_address parameter missing or emptyEnsure both required fields are present in the JSON body
invalid_json400Malformed or unparseable JSON payloadCheck JSON formatting and quotes in HTTP request body
invalid_ip_format400ip_address failed IPv4 / IPv6 validationPass a valid, routable IP address string
field_too_long400Email (>254 chars) or IP (>45 chars) exceeded boundsValidate input lengths against RFC standards before submitting
invalid_idempotency_key400Idempotency-Key header format invalid or exceeds 128 charactersSupply 1–128 alphanumeric characters, hyphens, or underscores (e.g. UUID v4)
idempotency_conflict409A request with this Idempotency-Key is currently processingPause briefly and retry; the original in-flight request will complete and replay
server_overloaded503API server concurrency limit reachedBack off using jittered exponential retry (respect Retry-After)
internal_error500An unexpected server-side error occurred while processing the requestRetry with an Idempotency-Key or submit request_id to support

HTTP Error Examples

Common error response payloads with corresponding HTTP status codes:

400 Bad Request

Validation failure
{
"error": "email is required",
"code": "missing_required_fields",
"message": "email is required",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when required parameters (email or ip_address) are missing, empty, or malformed.

401 Unauthorized

Missing or invalid authentication
{
"error": "API key required",
"code": "unauthorized",
"message": "API key required",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when the X-API-Key or Authorization header is missing, revoked, or invalid.

409 Conflict

Concurrent idempotency lock conflict
{
"error": "A request with this Idempotency-Key is currently in progress. Please retry shortly.",
"code": "idempotency_conflict",
"message": "A request with this Idempotency-Key is currently in progress. Please retry shortly.",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when two concurrent requests submit the same Idempotency-Key simultaneously.

413 Payload Too Large

Body exceeds 64KB
{
"error": "Request body exceeds maximum size of 64KB",
"code": "payload_too_large",
"message": "Request body exceeds maximum size of 64KB",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when the HTTP request body exceeds the 64KB defensive payload ceiling.

429 Rate Limit Exceeded (Burst)

Per-minute burst throttled
// Headers:
// Retry-After: 3
// RateLimit-Remaining: 0
{
"error": "Rate limit exceeded. Too many requests per minute. Please slow down.",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Too many requests per minute. Please slow down.",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when request frequency exceeds your plan's per-minute allowance. The Retry-After header indicates seconds to wait.

429 Monthly Quota Exceeded

Monthly allowance exhausted
// Headers:
// Quota-Remaining: 0
// Quota-Reset: 2026-11-01T00:00:00Z
{
"error": "Monthly quota exceeded. Upgrade your plan or wait for next billing cycle.",
"code": "monthly_quota_exceeded",
"message": "Monthly quota exceeded. Upgrade your plan or wait for next billing cycle.",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when your account has consumed all monthly scoring requests. The Quota-Reset header specifies when your allowance resets.

503 Service Overloaded

Concurrency shed limit reached
// Headers:
// Retry-After: 1
{
"error": "Server is currently experiencing heavy load. Please retry shortly.",
"code": "server_overloaded",
"message": "Server is currently experiencing heavy load. Please retry shortly.",
"request_id": "123e4567-e89b-12d3-a456-426614174000"
}

Returned when extreme traffic spikes reach the global concurrency ceiling. Safe to retry with exponential backoff.

Fair Billing Guarantee & Automatic Quota Rollback
Requests that fail with 400 Bad Request (validation errors), 409 Conflict, 413 Payload Too Large, or 500 Internal Server Error are never charged against your monthly quota. If an error occurs after a quota reservation, the monthly counter is automatically and atomically rolled back so you only pay for successfully scored evaluations.

Looking for Scoring Reason Codes?

For evaluation indicators returned in 200 OK responses across Email, IP, Velocity, User-Agent, and Cross-Factor Correlation, consult our dedicated Reason Codes reference.

View 51 Reason Codes