Originally published: 2025-10-29
Technical update: 22 October 2026. A 502 Bad Gateway response means a gateway or proxy received an invalid response from an upstream system. Different faults can produce it; identify the layer generating the response first. See the MDN definition.
502 concerns an invalid upstream response, 504 a gateway waiting too long for one, and 503 a service unable to handle the request at that time. Products may map failures differently, so the status alone does not establish a root cause.
Retry later and check status announcements. After a payment or order submission, confirm the outcome before repeating the operation: it may have completed in the background. Switching browsers or using a VPN does not permanently repair a server-side failure.
The Nginx proxy reference distinguishes connection, response and timeout settings. Raising timeouts or worker counts without measurements can obscure the problem.
Do not disable the entire firewall, apply 777 permissions recursively or bypass certificate verification. Identify the affected component and rollback plan before restarting services. Deleting logs can destroy diagnostic evidence.
Measure the bottleneck first. If requirements exceed current limits, assess a cloud server or dedicated physical server. Verify configuration compatibility before a hosting migration. A larger server does not automatically correct a faulty proxy configuration.