API errors
bad_gateway
A network the request depends on failed to complete it.
502application/problem+jsonWhat it means
The request was valid, but a network operation it needs failed. The failure is usually transient.
A retry with the same X-Idempotency-Key within 48 hours returns this same response rather than running the operation again.
502 · application/problem+json
How to handle it
For a write, read the resource's state first, then retry with a fresh
X-Idempotency-Keyif the operation did not take effect.Back off exponentially if it keeps failing, and contact Firsty support with the
X-Request-Idresponse header value.