Error Codes & Responses
HTTP status codes, machine-readable error contracts, and failure handling for SiftlyAPI.
HTTP Status Codes
| Code | Meaning | When |
|---|---|---|
200 | Success | Request processed successfully and score calculated |
400 | Bad Request | Invalid JSON, missing required fields (email, ip_address), invalid IP format, or field length bounds exceeded |
401 | Unauthorized | Missing, invalid, or revoked API key |
409 | Conflict | A request with the same Idempotency-Key is currently in progress |
413 | Payload Too Large | Request body exceeds maximum size limit of 64KB |
429 | Rate Limited | Per-minute burst rate limit exceeded or monthly plan quota exhausted |
500 | Server Error | Internal server error occurred while processing the request |
503 | Unavailable | Server 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:
{ "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"}| Field | Type | Description |
|---|---|---|
error | string | Human-readable error description (maintained for legacy backward compatibility) |
code | string | Machine-readable snake_case identifier for deterministic branching |
message | string | Detailed error message explaining the root cause |
request_id | uuid | Correlation ID matching X-Request-ID for tracing and support |
Machine-Readable Error Codes
| Code | HTTP Status | Description | Recommended Client Action |
|---|---|---|---|
unauthorized | 401 | Missing, invalid, or revoked API key | Verify X-API-Key or Authorization: Bearer header against the dashboard |
rate_limit_exceeded | 429 | Per-minute burst rate limit exceeded | Inspect Retry-After response header and pause requests for the specified seconds |
monthly_quota_exceeded | 429 | Monthly plan evaluation allowance exhausted | Upgrade subscription plan in dashboard or wait for Quota-Reset date |
payload_too_large | 413 | Request body exceeds 64KB limit | Trim unnecessary fields from JSON request payload |
missing_required_fields | 400 | email or ip_address parameter missing or empty | Ensure both required fields are present in the JSON body |
invalid_json | 400 | Malformed or unparseable JSON payload | Check JSON formatting and quotes in HTTP request body |
invalid_ip_format | 400 | ip_address failed IPv4 / IPv6 validation | Pass a valid, routable IP address string |
field_too_long | 400 | Email (>254 chars) or IP (>45 chars) exceeded bounds | Validate input lengths against RFC standards before submitting |
invalid_idempotency_key | 400 | Idempotency-Key header format invalid or exceeds 128 characters | Supply 1–128 alphanumeric characters, hyphens, or underscores (e.g. UUID v4) |
idempotency_conflict | 409 | A request with this Idempotency-Key is currently processing | Pause briefly and retry; the original in-flight request will complete and replay |
server_overloaded | 503 | API server concurrency limit reached | Back off using jittered exponential retry (respect Retry-After) |
internal_error | 500 | An unexpected server-side error occurred while processing the request | Retry 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
{ "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
{ "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
{ "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
{ "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)
// 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
// 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
// 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.
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.