Talewright Docs Open the app

How should a script handle the API's answers?

  1. 2xx: done.
  2. 429: wait Retry-After seconds, then send again.
  3. 409 STALE_LOCK_VERSION: read the thing again, rebuild the change.
  4. 503 or 500: wait briefly, send the same body again, give up after a few tries.
  5. 401: the key is no longer valid. Stop.
  6. 403, 404, 422, other 409: do not repeat it unchanged.