WordPress HTTP errors: 403, 404, 500, 502, 503, 504
WordPress HTTP errors: a 500 after a plugin update, 403/429 from a WAF, 404 probes, and a fix order that starts with the last change you made.
Topics Beginner guides
WordPress HTTP errors: a 500 after a plugin update, 403/429 from a WAF, 404 probes, and a fix order that starts with the last change you made.
Topics Beginner guides
On WordPress, an HTTP error is usually one of three things: a plugin or theme fatal (500/502), a firewall or permission block (403/429), or a missing URL (404). The three-digit code tells you which path to check first.
Jump to the fix: 403 Forbidden, 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable.
This is a WordPress diagnosis map, not a full HTTP spec. For the protocol itself, use MDN. For a site that broke after an update or a new firewall rule, start here.
Codes show up in the browser, host logs, CDNs, and uptime monitors. Security angle: some 403/429 patterns come from a WAF or rate limiting. Firewall context: Cloud Firewall.
| Range | Meaning |
|---|---|
| 2xx | Success |
| 3xx | Redirect |
| 4xx | Client problem (bad URL, auth, forbidden, not found) |
| 5xx | Server problem (crash, bad gateway, timeout) |
People say “HTTP error” for most non-2xx responses. Redirects (3xx) are status codes too, but they are not failures unless they loop or point at the wrong place.
Fix: undo the last change. Rename the wp-content/plugins folder over SFTP to switch off every plugin. If the site loads, rename it back and re-enable plugins one at a time.
Something broke on the server: a PHP fatal error, a bad plugin or theme update, exhausted memory, or a broken config.
WordPress-first checks:
wp-config, .htaccess)?WP_DEBUG_LOG on staging, not public production display)Check PHP and server error logs. Hosting support is fair game if logs are unclear.
Fix: restart PHP-FPM or your app stack, confirm your CDN points at the right origin, then clear the CDN cache.
A proxy, CDN, or load balancer got a bad response from upstream (PHP-FPM, Node, another origin).
WordPress-first checks:
Clear the CDN cache after a fix if stale errors linger.
Fix: wait a minute and reload. If it stays, delete the .maintenance file in the WordPress root over SFTP. A failed update can leave it behind and keep the site in maintenance mode.
A 503 means the server is up but cannot take the request right now. If there is no .maintenance file, the usual causes are a host resource limit (PHP workers or CPU), a traffic spike, or a bot flood on heavy endpoints.
WordPress-first checks:
wp-login.php or admin-ajax.php (check firewall logs)?Fix: find the slow request first, then fix that. Raise timeouts only after you know why the work is slow.
Upstream was too slow. Causes include heavy queries, overloaded CPU, network issues, or timeout values that are too tight.
WordPress-first checks:
Sometimes a firewall or bot flood is part of the load story.
Fix: correct the link, restore the content, or add a proper 301 redirect to the right page.
The URL does not exist (typo, deleted post, bad rewrite). Broken links waste SEO and trust.
For noisy 404 probing by bots, see 404 hammering. Security Ninja 404 Guard reduces scanner load on missing URLs.
Fix: check the login, cookies, Application Passwords, tokens, or Basic Auth settings for the request that failed.
Authentication is missing or wrong.
Fix: turn off the last security rule or plugin setting you added, then check file permissions on wp-content and your .htaccess rules.
The server understood the request but refuses it. Review permissions and security rules before assuming the site is “down.”
WordPress causes:
wp-content or .htaccess rules (htaccess guide)Fix: raise the limit if real visitors hit it (a sale or campaign spike), and tighten it if bots cause it. Tune the rule instead of guessing.
Rate limiting kicked in.
Login and checkout endpoints often hit 429 first during credential stuffing. See login protection and WooCommerce security.
Redirects are normal when URLs move. Wrong ones create loops and SEO confusion.
WordPress redirect loops often come from:
.htaccessMonitor redirect chains in DevTools. Prefer one clean hop from old URL to new.
A padlock warning is not an HTTP status code. Mixed content, an expired certificate, or http vs https fighting each other show up as browser warnings, failed scripts, or a redirect loop.
Fix HTTPS in one place (the host panel or WordPress, not both), then load checkout and wp-admin and look for mixed-content blocks. Certificate and “not secure” issues belong with DNS and the host. A 500 after you “force SSL” is usually a redirect loop or a plugin SSL toggle stacked on the host toggle. See Redirects (3xx) above.
Online checkers (Search Console crawl stats, Pingdom, GTmetrix) help spot patterns. Browser extensions can show status codes while you click through the site. Install only what you need.
.htaccessWordPress hardening that reduces “mystery 500 after update” incidents: security checklist and hardening guide.
If unexplained 403 or 429 responses keep hitting real visitors, check whether a WAF or firewall rule is too aggressive. Cloud Firewall in Security Ninja Pro can help you see and tune that traffic without guessing from a blank error page.
HTTP status codes are a map, not a mystery. Read the number, check the right logs, and fix the client path or the server path. On WordPress, the last plugin change is guilty until proven innocent. Keep backups and monitoring so the next 500 is a short outage, not a guessing game.
Found this useful? Share it.
On WordPress it is usually a plugin or theme fatal (500/502), a firewall or permission block (403/429), or a missing URL (404). The three-digit code tells you which path to check first.
It means the server returned a three-digit status instead of a normal success response. 4xx codes usually point at the URL, auth, or permissions. 5xx codes usually point at the server, app, proxy, or timeout. The exact number tells you where to look first.
Something broke on the server: a PHP fatal error, bad plugin or theme update, exhausted memory, or broken config. Check recent changes and PHP or server error logs. On WordPress, disable the last change or restore from backup to isolate the cause.
A proxy, CDN, or load balancer got a bad response from upstream (PHP-FPM, Node, or another origin). Check origin health, DNS, and proxy settings. Restart the app stack if you control it, then clear CDN cache if stale errors linger.
Identify the exact status code and URL in DevTools or logs. For 5xx, check recent deploys, plugin or theme rollbacks, and host resources. For 4xx, check the URL, auth, permissions, and WAF or rate-limit rules. For redirect loops, fix chains and http vs https or www vs apex.