502
Server Error
502 Bad Gateway
The server received an invalid response from an upstream server.
Description
The 502 Bad Gateway status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.
Common Causes
- Upstream server is down
- PHP-FPM/application process crashed
- Timeout from upstream server
- Firewall blocking upstream connection
- DNS resolution failure for upstream
How to Fix
- Check upstream server status
- Restart PHP-FPM or application process
- Increase proxy timeout values
- Check nginx/Apache proxy configuration
- Verify upstream server health
Check your website's HTTP status code
Check now →