Problem body
| Field | Type | Description |
|---|---|---|
type | string | The problem URI, urn:norspire:problem:<code>. |
title | string | A short English summary for developers, not for readers. |
status | integer | The HTTP status code. |
code | string | The machine-readable error code. Match on this field, not title. |
requestId | string | The request ID. Give this ID to the Norspire operator when you ask for help. |
errors | array | Field errors with pointer, code and optional values. |
retryAt | timestamp, UTC | The time when you can try again. Rate limit answers include this field. |
Error codes
| Status | code | Cause | Action |
|---|---|---|---|
| 400 | invalid_request | The body is not a strict JSON object, or a field holds a wrong value. | Fix the request in your server. |
| 400 | unknown_access_key | No plan of the publication holds the accessKey value from the server check. | Save the plan with that key first, or fix the key. |
| 400 | invalid_code | The hand-off code expired or ran before. | Send the reader to Log in again. |
| 401 | unauthenticated | Missing, malformed, unknown, revoked or wrong-publication server key. Response includes WWW-Authenticate: Bearer. | Replace the server key. Do not retry. |
| 401 | key_mode_mismatch | The server key belongs to the other mode. | Use ns_sk_test_ in sandbox and ns_sk_live_ in production. |
| 403 | browser_request | A browser sent a server-key request. | Send the request from your server. |
| 403 | forbidden | The Origin header is not a saved site origin. | Add the origin on the Integration page. |
| 404 | no_site | The host has no publication. | Check the subscription host. |
| 413 | too_large | The request body exceeds 4 KiB. | Send a smaller body. |
| 415 | unsupported_media_type | The request body is not JSON. | Send Content-Type: application/json. |
| 429 | rate_limited | The request reached a rate limit. | Wait for the time in Retry-After. |
| 500 | internal | An error occurred in Norspire. | Try again later. Send requestId if the error continues. |
| 503 | busy | Norspire is busy. | Wait for the time in Retry-After, 1 second. |
The OpenAPI schema lists all codes in the API. The 4 public operations return the codes in this table.
Read about 429 on a shared address in part 13. Read about the circuit breaker in part 5.