SEO

5xx

Also called Server error, 500, 502, 503, 504

The family of server-side error responses returned when a valid request cannot be fulfilled.

Quick facts: 5xx

Category
SEO
Also called
Server error, 500, 502, 503, 504
Level
Intermediate
Affects
Crawling and indexing, ad approvals, revenue during outages
Where to see it
Uptime monitoring, server error logs, Search Console (Crawl stats, host status)
In this article4
  1. What a 5xx response means
  2. Why 5xx errors matter
  3. Common mistakes with 5xx errors
  4. How to act on it

What a 5xx response means

Status codes beginning with five put the blame on the server. The request was well formed, the address was valid, and something at your end failed to produce a page. That distinction matters, because codes beginning with four say the problem was in the request while these say the problem is yours to fix.

The individual codes describe different failures. A 500 is a general internal error, usually an application or database fault. A 502 means one server passed the request to another and got nonsense back. A 503 says the service is unavailable and is the polite one, since it can carry a header saying when to try again. A 504 means something waited for a response and gave up. Reading which code you get narrows the search considerably.

Why 5xx errors matter

Search engines respond to server errors by backing off. Faced with repeated failures a crawler slows down to avoid making things worse, so crawling drops exactly when you least want it to. If the failures continue across enough visits, pages start falling out of the index, and recovering that takes far longer than the outage itself.

The paid side breaks faster still. Ad platforms check landing pages, and a page that fails review can have its ads disapproved and the campaign stopped, so budget stops working while the site is unwell. Meanwhile visitors leave immediately — nobody retries a broken checkout — and on shared hosting the cause may not even be your site but a neighbouring one consuming the machine.

Common mistakes with 5xx errors

The biggest is taking a site down for planned work without saying so properly. Maintenance should return a service-unavailable response with a retry header, so crawlers understand the outage is deliberate and temporary rather than treating a half-broken site as the new normal.

The second is checking only the homepage. Errors often affect one template, one language folder or one heavy database query, and the front page stays up throughout. The third is dismissing an intermittent error as a one-off. Failures that appear only under load, only on a particular page type or only for crawlers are the ones that quietly cost the most, because nobody is looking when they happen.

How to act on it

Put monitoring in place first, so you learn about failures from an alert and not from a client. Then use the crawl stats report in Search Console, which shows host status and lets you see whether the crawler is meeting errors you never noticed. Your server’s error log holds the actual reason and is where a fix begins.

Match the response to the situation: deliberate downtime gets a service-unavailable status with a retry header, and everything else gets investigated. If errors line up with your busiest hours, the problem is capacity or caching rather than code, and no amount of plugin tuning will settle it. For sites serving customers across time zones, remember your quiet hour is somebody’s peak — a Kathmandu-hosted site can fail during the Australian morning and look perfect by the time you sit down. Server reliability is the foundation the rest of technical SEO and page speed work sits on.

Do and do not

Do

  • Return a service-unavailable status during planned maintenance
  • Monitor uptime continuously rather than checking by hand
  • Read the server error log before changing anything

Do not

  • Test only the homepage after an incident
  • Dismiss an intermittent failure as a one-off
  • Ignore errors that appear only at peak hours

Questions people ask about this

What is the difference between a 5xx and a 404?

A not-found response says the address has no content and the answer is final, so a crawler stops asking. A server error says the request was reasonable and your server could not answer it, which implies the page may be fine once the fault is repaired. Crawlers therefore keep the page in mind for a while and slow down instead.

How should I take my site down for maintenance?

Return a service-unavailable status with a retry header for the duration, and show a short page explaining what is happening and when you expect to be back. That tells crawlers the outage is deliberate and temporary, so they return later rather than treating the broken state as the site's real content. Never leave errors unexplained.

Why do server errors only appear sometimes?

Usually because they depend on load, on a particular page type, or on a slow query that only times out when the database is busy. Shared hosting adds another cause, since a neighbouring site can consume the machine's resources. Continuous uptime monitoring catches these, whereas manual checks almost always happen when the site is behaving.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.