Skip to main content

HTTP error codes

Error response format

All 4XX and 429 errors return a structured JSON body with three fields: a machine-readable errorCode, a human-readable message, and a hint suggesting how to resolve the issue.

400 Bad Request

The server cannot process the request due to a client-side error. Common causes:
  • Missing a required query parameter (e.g., phone on phone-based APIs)
  • Invalid parameter format (e.g., malformed phone number)
  • Syntax error in request URL
Fix: Check the required parameters listed in the API reference for the endpoint you are calling.

403 Forbidden

The request is understood, but the server is refusing to fulfill it. A missing x-api-key header returns INVALID_API_KEY, not MISSING_API_KEY. The MISSING_API_KEY code appears only when the request targets a non-existent endpoint path or an unsupported HTTP method.

429 Too Many Requests

You have exceeded a rate or quota limit. See Rate limits for retry guidance.

500 Internal Server Error

An unexpected error occurred on the server. If this persists, contact support@trestleiq.com with the request details and timestamp.

Partial errors

Some APIs return a 200 response with an error or errors field when partial data could not be retrieved (e.g., due to an upstream timeout). Check for this field in every response:
When error is present, the response is partial. The fields that were successfully retrieved are still usable.

Warnings

Warnings indicate non-fatal issues with the input or response. They do not prevent a response from being returned:
Common warning values vary by API — see the warnings field documentation on each API reference page.