Errors
This page lists all error responses returned by the InfraRed API.
Envelope
All errors are returned in the following structure:
{
"error": {
"code": "string",
"message": "string",
"field": "string (optional)",
"livemode": "boolean"
}
}
Error Object Fields
|
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
string |
✅ |
Machine-readable error code |
|
|
string |
✅ |
Human-readable explanation of the error |
|
|
string |
❌ |
Present for field-specific errors |
|
|
boolean |
✅ |
Indicates if the error occurred in live or sandbox mode |
API Key Errors
Lists errors related to authentication and authorisation, specifically those involving invalid or mismatched API keys.
These usually occur when connecting to the API with incorrect or missing credentials.
|
Code |
HTTP Status |
Description |
|---|---|---|
|
|
401 Unauthorized |
API key environment does not match the requested environment. |
|
|
401 Unauthorized |
The provided API key is invalid. |
|
|
401 Unauthorized |
The provided API key has expired. |
|
|
401 Unauthorized |
No API key in Authorization header. |
Common Errors
Lists general-purpose errors that may occur across multiple endpoints.
These include server issues, invalid parameters, rate limits, or incorrect resource identifiers.
|
Code |
HTTP Status |
Description |
|---|---|---|
|
|
500 Internal Server Error |
Unexpected server error. |
|
|
429 Too Many Requests |
Rate limit exceeded. |
|
|
404 Not Found |
Requested URL not found. |
|
|
400 Bad Request |
Email value is invalid. Includes |
|
|
400 Bad Request |
Country code value is invalid. Includes |
|
|
400 Bad Request |
Date value is invalid. Includes |
|
|
400 Bad Request |
Datetime value is invalid. Includes |
Field Validation Errors
Contains errors triggered by invalid or missing input data.
These errors occur when the request body fails validation checks, such as type mismatches or length constraints.
|
Code |
Description |
|---|---|
|
|
Field value type mismatch. Includes |
|
|
Field value not in allowed set. Includes |
|
|
A required field is missing. Includes |
|
|
Array has fewer than the minimum number of items. Includes |
|
|
String shorter than minimum length. Includes |
|
|
Number smaller than minimum value. Includes |
|
|
Array exceeds maximum number of items. Includes |
|
|
String exceeds maximum length. Includes |
|
|
Number exceeds maximum value. Includes |
Request Errors
Lists errors related to request formatting, payload size, or idempotency.
These typically indicate that the client request was malformed or exceeded the API’s limits.
|
Code |
HTTP Status |
Description |
|---|---|---|
|
|
413 Request Entity Too Large |
Request payload size exceeds limit (2 MB). |
|
|
400 Bad Request |
Malformed JSON in request body. |
|
|
400 Bad Request |
Request body is invalid. |
|
|
400 Bad Request |
Idempotency key reused with a different body/params. |
|
|
503 Service Unavailable |
Temporary service outage; try again later. |
Document Information Extraction Errors
Details errors related to uploaded or linked documents, such as invalid file formats, payload encoding, or size violations.
|
Code |
Description |
|---|---|
|
|
Document type does not match expected type. |
|
|
Base64 document payload is invalid. Includes |
|
|
Public URL of document is unreachable. Includes |
|
|
Unsupported document content type (only PDF, JPEG, PNG). |
|
|
Document size exceeds maximum (20 MB). |
Name Screening Errors
Lists errors related to name screening requests, which check names against watchlists or sanction lists.
These help identify issues with unavailable screenings.
|
Code |
HTTP Status |
Description |
|---|---|---|
|
|
404 Not Found |
Name screening resource not found. |