Skip to content
TrackSafe365
v1.0 Dashboard →

Error Codes

The API uses standard HTTP status codes. Error responses include a JSON body with a code and message field.

Error shape

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or expired API token.",
    "status": 401
  }
}

HTTP status codes

CodeMeaning
200Success
201Created
400Bad Request — invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — insufficient permissions
404Not Found
422Unprocessable — validation failed
429Rate Limit Exceeded
500Internal Server Error

Handling errors

  • Treat any 5xx as retryable with exponential backoff.
  • Treat 429 as retryable after the X-RateLimit-Reset time.
  • Treat 4xx (except 429) as a client error — do not blindly retry.