Each error of the 4 public operations is application/problem+json by RFC 9457. The body has type, title, status, code and requestId. A limit adds retryAt, the time when you can try again. Give the requestId to the operator of Norspire when you ask for help.
| Status | code | Cause |
|---|---|---|
| 400 | invalid_request | The body is not a strict object, or a field has a wrong value. Fix your server. |
| 400 | unknown_access_key | The accessKey of the server check is no key of a plan of the publication. Save the plan with this key before your CMS sends it, or fix the key. |
| 400 | invalid_code | The hand-off code is not open. It expired, or a prior call used it. Send the reader to Log in again. |
| 401 | unauthenticated | No key, a key of the wrong form, an unknown key, a revoked key, or a key of another publication. Each answer has WWW-Authenticate: Bearer. |
| 401 | key_mode_mismatch | The key belongs to the other mode. A ns_sk_test_ key fails on production. A ns_sk_live_ key fails on development and sandbox. |
| 403 | browser_request | The request came from a browser. Call from your server. |
| 404 | no_site | The host has no publication. Check the subscription host. |
| 413 | too_large | The body is above 4 KiB. |
| 415 | unsupported_media_type | The body is not JSON. |
| 429 | rate_limited | The request reached a limit. Wait for the time in Retry-After. |
| 503 | busy | Norspire is busy. Wait for the time in Retry-After, 1 second. |
- The entitlement read of part 17 gives the codes of this table, except
invalid_codeandunknown_access_key. It adds no code. Part 17 lists its 9 codes. - Each answer 429 has
Retry-After. A 429 of the proxy has the problem body with noretryAt. - Alert on each answer 400 and 401. They mean a defect or a wrong key of your server, never a value of a reader.
- A 429, a 503, a timeout and a 5xx are failures for the breaker of part 5.
The 429 on a shared address
These 5 facts hold for the wrong-key gate.
- 20 answers 401 after a key lookup from 1 address on 1 host in 60 seconds close the wrong-key gate there. A missing key, a key of the wrong form and a key of the other mode do not count.
- A known key skips the gate. A key that passed a server check in a process in the last 24 hours is a known key in that process. Other servers of the same publication on the same address keep their answers 200 while 1 server sends a revoked or wrong key.
- A valid key that has not passed in that process yet can get 429 with
Retry-Afterfor 60 seconds at most. This can happen after an upgrade or with a new key. The next check after the gate opens gets a key lookup, and a pass ends the case. - A revoked key gets 401 at each check. Its retries keep the gate closed for keys that have not passed on that address.
- Replace the key on the server that gets 401. Do not retry a 401.
See also the Errors page in the API reference.