Documentation / Integration guide / Part 13 of 18

13. Errors and their causes

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.

HTTP status codes, machine error codes and causes
StatuscodeCause
400invalid_requestThe body is not a strict object, or a field has a wrong value. Fix your server.
400unknown_access_keyThe 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.
400invalid_codeThe hand-off code is not open. It expired, or a prior call used it. Send the reader to Log in again.
401unauthenticatedNo 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.
401key_mode_mismatchThe key belongs to the other mode. A ns_sk_test_ key fails on production. A ns_sk_live_ key fails on development and sandbox.
403browser_requestThe request came from a browser. Call from your server.
404no_siteThe host has no publication. Check the subscription host.
413too_largeThe body is above 4 KiB.
415unsupported_media_typeThe body is not JSON.
429rate_limitedThe request reached a limit. Wait for the time in Retry-After.
503busyNorspire 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_code and unknown_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 no retryAt.
  • 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.

  1. 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.
  2. 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.
  3. A valid key that has not passed in that process yet can get 429 with Retry-After for 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.
  4. A revoked key gets 401 at each check. Its retries keep the gate closed for keys that have not passed on that address.
  5. Replace the key on the server that gets 401. Do not retry a 401.

See also the Errors page in the API reference.