5xx, a 429 or a network error, waiting for Retry-After when the answer has one, with the same messageId or Idempotency-Key. Fix a request that got any other 4xx before you send it again.
Event routes
/v1/identify, /v1/track and /v1/batch on https://in.maqetin.com answer { "error": "…" }, with at for a body problem. A refused request stores nothing; for a batch, one refused item refuses the whole request.
Identity token
Inrequired mode, a call that names a userId is refused with 401 and one of these codes; in optional mode it is accepted. Get a new token from your server and send the request again. See Identity verification.
Messages and contacts routes
/v1/public/messages and /v1/public/contacts on https://api.maqetin.com answer the envelope, with the code in error.code. Branch on the code, never on the message. A 400 can carry error.details.issues: a list of { path, code }, one for each field that failed, with no value from the request. Every answer has a requestId in meta and in the X-Request-Id header; quote it when you ask for support.