For Stripe, there's two headers that can help clients with retrying or not: "Idempotent-Replayed: true"[1] and "Stripe-Should-Retry"[2].
Whether they're helpful in all server-side error situations I'm not sure.
1: https://stripe.com/docs/idempotency#sending-idempotency-keys
2: https://stripe.com/docs/error-handling#the-stripe-should-ret...