The TraxServer v5 API uses two distinct error mechanisms depending on the nature of the failure.Documentation Index
Fetch the complete documentation index at: https://docs.tight.com/llms.txt
Use this file to discover all available pages before exploring further.
HTTP Status Codes
Errors at the transport or authentication layer return a non-2xx HTTP status code:| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Request succeeded, or a business-logic validation failure occurred (check result in the body) |
| 400 | Bad Request | Malformed request, invalid JSON, or an unacceptable argument |
| 401 | Unauthorized | Missing or invalid session token |
| 403 | Forbidden | Valid session but insufficient permissions for this operation |
| 500 | Server Error | An unexpected internal error occurred |
HTTP Error Response
Non-2xx responses return a simple JSON object:Business Logic Errors (HTTP 200)
Validation and business rule failures return HTTP 200 with aresult of "FAILURE" in the response body. Always check the result field: a 200 does not guarantee success.
Response Schema
"SUCCESS" or "FAILURE"The ID of the created or updated resource, if applicable
Additional data returned by the operation
Present when
result is "FAILURE" (see below)Error Object Schema
Map of field name to error. Each value has
type and errorMessage.List of errors not tied to a specific field. Each item has
type and errorMessage.Error Types
| Type | Description |
|---|---|
REQUIRED | A required field was missing or blank |
DUPLICATE | The value conflicts with an existing record |
INVALID_VALUE | The value is present but not acceptable |
INVALID_FORMAT | The value is not in the expected format |
INVALID_MAPPING | The value does not map to a known resource |
NOT_MODIFIABLE | The field cannot be changed in its current state |
DELETE | The resource cannot be deleted due to existing dependencies |
GENERAL | A non-field-specific validation failure |
Example: Field Validation Failure
Example: Global Error
Recommendations
- Always check the
resultfield on 200 responses before treating an operation as successful. - Use
fieldErrorsto surface inline validation messages to users. - Use
globalErrorsfor form-level or operation-level error banners. - Log the full error response for troubleshooting:
typeis machine-readable and suitable for programmatic handling.