Response Status Codes
Even with careful requests, errors can occur. The Turuq API returns HTTP status codes to indicate success or the type of failure.
| Code | Meaning | Description |
|---|---|---|
| 200 | Success | The request was successful. Relevant data is returned in the JSON response body. |
| 201 | Created | The request was successful. Relevant data is returned in the JSON response body. |
| 400 | Bad Request | Missing or malformed parameter. Check the documentation and your request, then try again. |
| 401 | Unauthorized | No or invalid API key provided, or the account does not have access to this resource. |
| 403 | Forbidden | Authentication valid but server refuses to fulfill the request (e.g., lack of permissions). |
| 404 | Not Found | The endpoint or resource does not exist. |
| 409 | Conflict | The request conflicts with an existing resource, for example an integratorId already used by one of your integration orders. |
| 429 | Too Many Requests | Rate limit exceeded. See the Rate Limits section for details. |
| 500 | Internal Server Error | An unexpected error occurred on Turuq’s side. You may retry, but if it persists, contact support. |
Note: Errors are returned in an
errorstring at the root of the JSON response. Schema validation failures also include anissuesarray. Rate limit responses use amessagefield instead, as shown on the Rate Limits page.
