How to simulate a 502 from any API without touching the backend
Make a payment, login or search endpoint fail on demand, so you can see how your app handles errors. Two rules, no code changes, and one detail that keeps you from double-charging a card.