Errors¶
Every error shares one envelope. Two fields are always present; the rest appear when they apply.
{
"status": "error",
"code": "403 - Forbidden (PermissionDeniedError)",
"errors": [
{
"location": "querystring",
"name": "solution",
"description": "description of error"
}
],
"error": "invalid_grant",
"error_description": "human-readable summary"
}
| Field | When it appears |
|---|---|
status |
Always. The literal string error. |
code |
Always. HTTP status, its standard name, and the internal error class in brackets. |
errors |
When the failure is attributable to specific inputs. An array, one entry per problem. |
error |
On OAuth and authentication failures. A machine-readable code. |
error_description |
Alongside error, in prose. |
auth_failure_details |
On some authentication failures, with structured detail. |
Branch on the HTTP status, not on code. The bracketed class name in code
is diagnostic, useful in a bug report or a log line, and not a stable contract.
Each entry in errors names where the problem is (location, for example
querystring, body, or path), which input (name), and what is wrong
(description). For a validation failure on a write, that array is the list of
fields to fix.
Statuses you will see¶
| Status | Meaning | Retry? |
|---|---|---|
204 |
Success with no response body, such as an empty list without a conditional header. | Not an error |
304 |
Conditional request returned no response body. See Reading data for collection polling. | Not an error |
400 |
The request was malformed or failed validation. Read errors. |
No, fix the request |
401 |
Token missing, invalid, or expired. | Yes, once, after exchanging credentials again |
403 |
The client lacks the scope, or a permission check refused the request. | No |
404 |
No such resource, or one your client cannot see. | No |
429 |
A rate limit was exceeded. | Yes, after Retry-After |
5xx |
Something failed on our side. | Yes, with backoff |
The three that cost the most time¶
403 on a call you believe you were granted. A listed write scope may be
filtered if the client is not configured for writes. A resource or solution
permission check can also refuse the call. The token response cannot distinguish
these causes; see Authentication and scopes and contact
support to confirm the cause.
429 with X-RateLimit-Problem: Concurrent. Not a volume problem. Two of
your own requests are already in flight. See Rate limits.
A bare 400 with no errors array. The request never reached validation. Its path or
query string carried percent-encoding that would not decode as UTF-8, so it was refused up
front. Check how the client encodes ids and filter values rather than what it asked for.
404 that should be a 403. A resource outside your client's solution
access is not distinguishable from one that does not exist, by design. If a
record you can see in the web app returns 404 through the API, check the
solution on the request before you check the id.
Retrying safely¶
Retry 429 after Retry-After for reads and writes. For reads, also retry
5xx with backoff. A 401 is recoverable, but not by repeating the same
request: exchange your credentials for a fresh token and retry once. A second
401 on the retry is a configuration problem, so stop rather than looping.
Retries on reads are safe to repeat, but they are not free: every
authenticated request counts against your per-minute and per-day budget, retries
included. A received 429 rejects a write before its handler runs. Other
retries on writes are a harder problem: there is no idempotency key
on this API, so a POST /tenders that timed out may or may not have created a
tender. Before retrying a write after 5xx or no response, GET the
collection and check whether the record exists. A write that had not committed
when you looked can still land afterwards, so treat a negative check as probable
rather than certain and reconcile on your side. Retrying blind creates
duplicates.
Back off exponentially on 5xx. On 429, use Retry-After rather than a
backoff curve of your own: it is calculated from the actual window, so it is both
correct and usually shorter than a guess.
Reporting a problem¶
Include the full response body, the code field with its bracketed class name,
the endpoint and query string, and the UTC time of the request. That is enough to
find the request in our logs. Send it to
support@nuimarkets.com.
Updated 2026-10