Example 1: Look up a number
Input:
502Output: one entry with these details
- Status code and name
- 502 Bad Gateway
- Class
- 5xx Server error
- Meaning
- A server acting as a gateway or proxy (nginx, Apache, load balancer, CDN) received an invalid response or no response from the server behind it. The problem is between the servers, not with the visitor.
- First common cause
- The backend service (PHP-FPM, Node.js, Gunicorn, Docker container) is not running or has crashed
- First solution step
- Check the backend service status and restart it (systemctl status, docker ps).
- Example to copy (nginx)
- tail -n 50 /var/log/nginx/error.log
In words: A 502 Bad Gateway error means the server behind the proxy is not responding or has sent an invalid response. The entry lists 5 common causes and 5 troubleshooting steps, such as checking the backend service and reading the error log. The error occurs between the servers, not on the visitor’s end.
