Checkout returns 500 for everyone because the third-party payment API is returning 503.

IntermediateTroubleshooting5xx errors
Answer

Likely causes → A hard synchronous dependency on a vendor with no fallback, and errors propagated straight to users.

Diagnose → Check the vendor status page, and your outbound metrics: error rate and latency per external host. Confirm with a direct curl to their health endpoint.

Fix → Open the circuit breaker so you fail fast, and show a clear "payment temporarily unavailable" message. If you have a secondary provider, route to it. For some flows, accept the order and queue payment capture for retry.

Prevent → Circuit breakers and timeouts per vendor, a secondary provider for critical paths, and an alert on vendor error rate that pages before customers notice.

All Real-World Interview questions Roadmap: Interview readiness

More on 5xx errors