Error Handling

The Trudenty Consumer Trust Index (CTI) API uses standard HTTP status codes and structured JSON error responses to indicate the outcome of API requests.

This guide explains how the API communicates errors and provides recommendations for handling them in your application.

Error Response Format

Most error responses include the following fields.

FieldDescription
statusIndicates the request outcome.
request_idUnique request identifier for troubleshooting.
messageHuman-readable description of the error.

Example:

{
  "status": "error",
  "request_id": "req_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "message": "Authentication failed."
}

HTTP status codes

HTTP StatusWhen It Occurs
200Successful request
400Missing credentials, missing/invalid parameters, invalid date format, invalid date range
401Invalid client ID or client secret
403Partner account suspended or revoked
404No trust index record found (latest CTI endpoint only)
413Request body exceeds size limit
429Rate limit exceeded
500Internal server error

Authentication & Authorization errors

HTTP StatusMessageDescription
400Missing credentials. Provide x-client-id and x-client-secret headers.One or both authentication headers are missing
401Authentication failed. The x-client-id header value is invalid or not registered.Client ID not found
401Authentication failed. The x-client-secret header value is invalid.Client secret does not match
401UnauthorizedGeneric unauthorized response
403Your partner account is currently suspended.Partner account is suspended
403Your partner account has been revoked.Partner account is revoked
403Your partner account is not active.Partner account is not active

Validation errors

HTTP StatusMessageDescription
400At least one consumer id is requiredQuery parameter consumer_id is missing or empty
400from_date must be a valid date in YYYY-MM-DD formatInvalid from_date query parameter
400to_date must be a valid date in YYYY-MM-DD formatInvalid to_date query parameter
400from_date must be before or equal to to_dateDate range is invalid
400Invalid JSON body receivedMalformed JSON in request body
413Request body too large: {size} bytes exceeded the limitRequest payload exceeds allowed size

Business & server errors

HTTP Statusstatus fieldMessageDescription
404no_network_recordNo Trust Index record found for the supplied consumer attributes.No CTI data exists for the given consumer_id
429-Too many requests. Please try again after 1 minute.Rate limit exceeded
500errorInternal server errorUnexpected server-side failure

Rate limiting

Rate-limited responses are returned directly by the rate limiter and do not include a status or message field:

{
  "error": "Too many requests. Please try again after 1 minute."
}

Rate limit: 500 requests per minute per client IP address. Monitor the RateLimit-Remaining response header.


Need Assistance?

If you have questions about onboarding, authentication, or API integration, visit the Contact Support page to explore available support channels and contact our team.



Did this page help you?