How to Troubleshoot 502, 503 and 504 Website Errors
Read the actual HTTP response
A 502 usually means a gateway received an invalid upstream response. A 504 indicates that a gateway did not receive its upstream answer in time. A 503 indicates temporary unavailability, which might be planned maintenance, overloaded capacity or another service reporting that it cannot handle the request. These errors narrow the investigation and may be reported by different layers.
Write down the exact URL, code, local time and what you were doing. Check the homepage and one other existing read-only page. If the homepage works and an expensive request fails, note that distinction. Look for a visible provider reference or request ID, and consult the hosting provider's status page if it has one.
Work from the outside inward
If there is a CDN or reverse proxy, check whether its logs contain the request and identify the upstream response. Then compare the application's access and error logs for the same time. A request present at the proxy but absent at the application points to a different check than a request found in the app beside a database or runtime error.
Check recently changed components and whether the provider announced maintenance. If a newly deployed version caused the fault, use the approved rollback steps after identifying the failing change. If the issue affects only slow requests, measure processing time before changing timeouts. A longer timeout can hide the cause and keep more workers busy.
Escalate with a reproducible example
Give the provider one affected URL, one working URL if available, the exact response code and the observation time with its timezone. Include a request ID if one exists. Share redacted log lines rather than raw credentials or full customer request data. For a failed checkout or form submission in any application, check whether it was recorded before retrying.
Related resources
Official references
Ferkesh Hosting. Last reviewed .
شكرًا على ملاحظاتك!