Topic

HTTP Errors and Troubleshooting

Understand HTTP errors such as 404, 500, and 502, then choose the right checks for routes, logs, proxies, redirects, and upstream servers.

Choose by status code

HTTP errors are server responses. They can still be caused by a browser cache, DNS route, CDN, proxy, deployment, plugin, or database dependency, but the status code tells you where to start. First ask whether the failure affects one URL, the whole site, one visitor, every visitor, or only traffic behind a CDN.

Status or symptomWhat it usually meansBest page
404Resource, route, or redirect target is missing404 Not Found
500The application failed while processing the request500 Internal Server Error
502A gateway could not get a valid upstream response502 Bad Gateway
WordPress 500Plugin, theme, PHP, or .htaccess failure likelyWordPress 500
nginx 502nginx cannot reach or use an upstreamnginx 502

Layer model

Use a simple chain: browser -> DNS -> CDN/cache -> web server -> reverse proxy -> application runtime -> database. A 404 usually sits in routing, redirects, files, or rewrite rules. A 500 usually sits inside the app. A 502 usually sits between the proxy and upstream. If logs are available, start with access and error log matching before applying fixes.

Useful guides

Glossary

A route maps a URL to content or code. An upstream is the service a proxy calls. A proxy passes requests to another server. An origin is the server behind a CDN. A redirect sends a browser to a different URL. A cache can serve old responses until purged or expired.

Errors

404 Not Found

Diagnose a 404 Not Found by checking the URL, deleted files, broken routes, redirects, permalinks, and server configuration.

500 Internal Server Error

Find the cause of a 500 Internal Server Error by checking logs, recent deploys, plugins, PHP failures, permissions, and rollback options.

Aw, Snap! in Chrome

Fix Chrome Aw, Snap! crashes by isolating extensions, profile corruption, cache issues, hardware acceleration, and device-specific problems.

502 Bad Gateway

Diagnose a 502 Bad Gateway by checking the proxy, CDN, upstream app, PHP-FPM, timeouts, and server logs before changing DNS.

502 Bad Gateway in nginx

Fix nginx 502 errors by checking upstream health, sockets, proxypass targets, PHP-FPM, timeouts, and nginx error logs.

502 Bad Gateway in WordPress

Troubleshoot a WordPress 502 by checking PHP-FPM, overloaded plugins, theme changes, cache/CDN layers, hosting limits, and logs.

502 Bad Gateway in Chrome

Check a 502 Bad Gateway in Chrome by separating local browser or network symptoms from a real website-side gateway outage.

Guides

Check WordPress file permissions

Check WordPress ownership and permissions when uploads, plugins, themes, cache files, or PHP includes fail after a migration or deploy.

Enable WordPress debug log safely

Turn on WP_DEBUG_LOG without displaying errors publicly so WordPress 500, white screen, plugin, theme, and PHP failures leave evidence.