/ โ† Learning Hub / HTTP Error Fixes
On this page
  1. What the status code is telling you
  2. The fix guides
  3. Which errors to fix first
  4. Start with the logs, not guesses
  5. Errors that come and go
  6. Order of work
  7. Questions and answers

What the status code is telling you

The first digit of a status code tells you who is likely at fault, which is the most useful thing to know before you start.

CodeMeaningUsually caused byWhere to look
301, 302, 307, 308The content is somewhere elseRedirect rules, often several layered on top of each otherServer config, CMS redirect plugin, CDN rules
403The server refuses to serve itFile permissions, access rules, a firewall or bot protectionPermissions, .htaccess, firewall and security plugin logs
404Nothing exists at this URLDeleted or moved pages, typos in links, changed URL structuresThe link that pointed there, and your redirect map
410Gone on purposeA page deliberately removed with no replacementUsually intended; confirm it was meant
500The application failedA code error, a failed database connection, running out of memoryApplication and PHP error logs
502The proxy got a bad answer from the appThe application process crashed or is not runningWeb server error log, process manager
503Temporarily unavailableMaintenance mode, overload, rate limitingMaintenance settings, server load
504The proxy gave up waitingSlow queries, slow external services, long-running scriptsSlow query logs, timeout settings

A 4xx code generally means the request cannot be served as asked; the fix is in your links, redirects or access rules. A 5xx code means the server itself failed; the fix is in your code, hosting or configuration. Two further failures sit outside the status code system altogether: an SSL handshake that fails before any code is sent, and a request that times out with no answer at all.

The fix guides

Each guide focuses on one failure, with the diagnosis steps first, because the right fix depends on the cause.

Client errors (4xx)

Fixing 404 Not Found errors covers finding every missing URL in bulk, deciding whether to redirect, restore or let it go, tidying up after a migration, and soft 404s, where a page returns 200 but shows an error message. Fixing 403 Forbidden errors covers wrong file permissions, .htaccess deny rules, firewall rules and IP blocks, including the permission fix in Plesk and cPanel.

Server errors (5xx)

Fixing 500 Internal Server errors starts with the error log, where the real message is recorded, and covers PHP fatal errors, database connection failures and memory limits. Fixing 502 Bad Gateway errors covers a crashed PHP-FPM pool or Node process, proxy buffer settings and automatic restarts. Fixing 504 Gateway Timeout errors covers slow database queries, slow external APIs, timeout settings such as fastcgi_read_timeout, and moving long jobs out of the request.

Failures around the request

Fixing redirect chains and loops covers multi-hop redirects, loops and conflicts between Cloudflare and the origin. Fixing SSL handshake failures covers expired certificates, missing intermediate certificates, hostname mismatches and outdated protocol settings. Fixing request timeout errors covers the case where no response arrives at all, including slow first bytes, DNS problems and keep-alive settings.

By platform

The WordPress guide covers plugin and theme fatal errors, .htaccess corruption, wp-cron and using debug.log. The Plesk and cPanel guide covers where the logs really are, restarting PHP handlers and fixing permissions. The Node.js and Next.js guide covers process crashes under PM2, the 502s that follow, hosting platform timeouts and build failures that surface as 500s.

Which errors to fix first

Not all error codes are equally urgent. Rank them by how many people they affect and whether they are getting worse.

  1. Anything failing on the homepage or main landing pages. A 5xx or SSL error there affects every visitor who arrives.
  2. SSL failures. Browsers show a full-page warning and most people leave. Certificate problems also tend to affect the whole domain at once.
  3. Recurring 5xx errors. Occasional server errors are common; a pattern on one template or at certain times of day points to a real fault that will get worse under load. Search engines also slow down their crawling of a site that keeps returning server errors.
  4. 403s on pages you want public. These often come from a security rule that is too broad and may be blocking search engine crawlers as well as people.
  5. 404s that receive links or traffic. A missing page that other sites link to, or that people still visit, deserves a redirect to its closest replacement.
  6. Redirect chains and loops. Loops first, because they make pages unreachable; then chains, which only slow things down.
  7. 404s with no links and no traffic. These are usually harmless. A 404 for a page that genuinely no longer exists is the correct answer.
โš ๏ธ Do not redirect every 404 to the homepage. Search engines often treat that as a soft 404 anyway, and visitors expecting a specific page are confused. Redirect only where there is a genuinely equivalent page.

Start with the logs, not guesses

The status code tells you something failed; the server log tells you why. For 5xx errors especially, the message in the log usually names the exact file, line or service at fault, which saves hours of trial and error.

Match the time of an error in the audit with the time in the logs. If the audit shows a 500 at a particular minute, the log entry from that minute is almost always the cause.

๐Ÿ’ก Turn off public display of errors on a live site. Showing PHP errors to visitors can reveal file paths and settings. Log them to a file instead and read them there.

If you are not comfortable reading server logs, the guide to finding 400 and 500 errors gives a gentler introduction, and your hosting provider's support team can usually read them for you if you give them the URL and the time.

Errors that come and go

Some errors in the audit will not reproduce when you open the page yourself. That does not mean they are false. Intermittent errors are often the most informative, because they show where the site is close to its limits.

Run the audit again at a different time of day. If the same URLs fail, the problem is in the page; if different URLs fail each time, the problem is in the server's capacity or configuration. The Site Crawler Guide explains how crawl speed and scope affect what the audit sees.

Order of work

  1. Run the HTTP Error Audit and group the results by status code.
  2. Check the certificate and any SSL failures first, since they affect every page on the host.
  3. For 5xx errors, read the server and application logs at the times shown, fix the underlying fault, and confirm the page now returns 200.
  4. For 403s, check whether the page should be public; if so, correct permissions or loosen the rule that blocks it.
  5. For 404s, decide per URL: redirect with a 301 to a true equivalent, restore the page, or leave it as a 404 or 410.
  6. Correct internal links that point at errors or redirects so they point straight at the final live URL.
  7. Collapse any redirect chains and remove loops, using the Redirect Checker Guide for the detail.
  8. Re-run the audit, ideally at a busier time of day, to confirm the fixes hold under load.

For a broader view of on-page issues once the server is answering correctly, see the Site Audit Guide.

Questions and answers

1. Do 404 errors hurt my SEO?

Not in themselves. Google has said that 404s for pages that genuinely no longer exist are normal and do not harm the rest of the site. They matter in two situations: when your own internal links point at them, which wastes visitors' clicks and crawl requests, and when the missing page used to receive links or traffic, because that value is lost unless you redirect it to a relevant replacement. Fix those cases and leave truly dead URLs as 404s.

2. What is the difference between a 404 and a 410?

Both tell browsers and search engines that nothing is available at the URL. A 404 says the page was not found, without saying whether it might come back. A 410 says it has been removed deliberately and is gone for good. In practice search engines treat them very similarly, with a 410 sometimes leading to slightly faster removal from the index. Use a 410 when you have intentionally removed content with no replacement, and a 404 otherwise.

3. What is a soft 404?

A soft 404 is a page that tells visitors it does not exist, or shows little or no real content, but returns a 200 success code to browsers and search engines. Common examples are empty search result pages, out-of-stock product pages with nothing else on them, and custom error pages that forget to send a 404 code. Search engines usually detect these and exclude them. Fix them by returning a proper 404 or 410, or by giving the page real content.

4. Why does my site show a 502 Bad Gateway error?

A 502 means a server acting as a go-between, such as nginx, a CDN or a load balancer, asked your application for the page and got an invalid answer or no usable answer. The most common causes are a crashed PHP-FPM pool, a Node process that has stopped, or an application that ran out of memory. Check the web server error log first, then restart the application process and look for the reason it stopped.

5. How do I fix a 403 Forbidden error on my own website?

Start by checking file and folder permissions, which on many Linux hosts should typically be 644 for files and 755 for folders. Then look for deny rules in .htaccess or the server configuration, and check any firewall, security plugin or CDN bot protection that might block the request. If the 403 only affects some visitors or crawlers, a security rule is the likely cause. Your host can also check their server-level firewall logs for you.

6. Will a short outage damage my Google rankings?

A brief outage of a few hours is unlikely to have a lasting effect. If you need to take the site down for planned maintenance, returning a 503 status with a Retry-After header tells search engines it is temporary. Longer or repeated server errors are more serious: search engines slow down crawling when they keep meeting errors, and pages that fail for an extended period may eventually be dropped from the index until they recover.

7. Why does the audit report errors I cannot reproduce in my browser?

The audit requests many pages in a short time, much as a search engine crawler does, and records what happened at that moment. Errors that appear only then are often caused by load, scheduled jobs, rate limiting or bot protection rules that treat automated requests differently from a single person browsing. Match the times in the report with your server logs, and run the audit again at another time to see whether the same URLs fail.

Find every failing URL

The HTTP Error Audit requests every URL in your crawl scope, records the status code and response time, follows redirects and flags anything outside the 200 range, so you can fix errors before search engines and visitors meet them.

Run the HTTP Error Audit โ†’
๐Ÿ’ฌ Got a problem?
Related Guides: Redirect Checker Guide  ·  Site Crawler Guide  ·  Site Audit Guide  ·  Learning Hub

About aiwebpageseo

aiwebpageseo.com is a data-driven SEO and AEO (Answer Engine Optimisation) platform providing a free suite of technical SEO tools. Rather than relying on AI-theorised assumptions, the platform analyses live URL performance, delivering objective diagnostics, page speed metrics, CLS debugging, and site crawl data alongside actionable technical tutorials.