Response Codes
TX API uses the standard HTTP response codes to indicate the request status:
- Codes within the range of 2xx indicate a request processed successfully.
- Codes within the range of 4xx indicate an error in the request.
- Codes within the range of 5xx indicate a system error.
The table below lists the standard response codes:
| Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 422 | Declined |
| 500 | Internal server error |
For security reasons, some errors (with codes 5xx) do not contain full information, such as stack trace. To receive this information (for example, for the purpose of debugging in the test system), it is required to set up the rdx.openapi.incinterface.exception.debug property of the TranzAxis instance, on the Common Instance Properties tab in the instance editor (after the property is defined, the instance needs to be restarted).