Documentation / API reference / Errors

Errors

Each error from the 4 public operations returns application/problem+json by RFC 9457.

Problem body

Fields in the problem JSON body
FieldTypeDescription
typestringThe problem URI, urn:norspire:problem:<code>.
titlestringA short English summary for developers, not for readers.
statusintegerThe HTTP status code.
codestringThe machine-readable error code. Match on this field, not title.
requestIdstringThe request ID. Give this ID to the Norspire operator when you ask for help.
errorsarrayField errors with pointer, code and optional values.
retryAttimestamp, UTCThe time when you can try again. Rate limit answers include this field.

Error codes

Status codes, machine error codes, causes and actions
StatuscodeCauseAction
400invalid_requestThe body is not a strict JSON object, or a field holds a wrong value.Fix the request in your server.
400unknown_access_keyNo plan of the publication holds the accessKey value from the server check.Save the plan with that key first, or fix the key.
400invalid_codeThe hand-off code expired or ran before.Send the reader to Log in again.
401unauthenticatedMissing, malformed, unknown, revoked or wrong-publication server key. Response includes WWW-Authenticate: Bearer.Replace the server key. Do not retry.
401key_mode_mismatchThe server key belongs to the other mode.Use ns_sk_test_ in sandbox and ns_sk_live_ in production.
403browser_requestA browser sent a server-key request.Send the request from your server.
403forbiddenThe Origin header is not a saved site origin.Add the origin on the Integration page.
404no_siteThe host has no publication.Check the subscription host.
413too_largeThe request body exceeds 4 KiB.Send a smaller body.
415unsupported_media_typeThe request body is not JSON.Send Content-Type: application/json.
429rate_limitedThe request reached a rate limit.Wait for the time in Retry-After.
500internalAn error occurred in Norspire.Try again later. Send requestId if the error continues.
503busyNorspire 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.