Skip to main content
The Detrack API uses conventional HTTP status codes to signal success and failure. Any 2xx response indicates success. 4xx responses indicate a client error you can fix by changing the request. 5xx responses indicate a Detrack server problem.

Client errors

Validation error response

When validation fails, the response body includes a code, message, and an errors array pointing at the fields that failed:
Bulk endpoints (Create, Update, Delete) also return a per-record errors array so you can identify exactly which items in the request failed while the others succeeded.

Handling errors

  • 401 / 403: check your API key and account permissions. Do not retry.
  • 404: verify the do_number, date, and type you passed. Do not retry.
  • 422: read the errors array, fix the request, and try again.
  • 429: back off and retry with exponential backoff, respecting Retry-After if present. Consider using bulk endpoints.
  • 5xx: retry with exponential backoff. Contact Detrack support if the error persists.