SEO

5xx Server Errors

Also called 5xx, 500 error, 503 Service Unavailable, server error

HTTP status codes from 500 to 599 meaning the server failed to deliver a page, which slows crawling and can drop pages from Google.

Quick facts: 5xx Server Errors

Category
SEO
Also called
5xx, 500 error, 503 Service Unavailable, server error
Level
Intermediate
Affects
Crawl rate, indexing, sales and enquiries, ad landing pages
Where to see it
Search Console Crawl stats and Page indexing reports, uptime monitors, hosting error logs, CDN dashboards
In this article4
  1. How 5xx server errors work
  2. Why it matters
  3. Common mistakes
  4. How to act on it

5xx server errors are the family of HTTP status codes from 500 to 599, all meaning the server failed to deliver a page it was asked for. The request was valid; the fault lies with the website, its hosting or something in between, not with the visitor.

How 5xx server errors work

The four you will meet most often each point to a different kind of failure:

  • 500 Internal Server Error. The site’s code crashed: a plugin conflict, a PHP error after an update, or a broken configuration file.
  • 502 Bad Gateway. A proxy or CDN in front of the site asked the origin server for the page and got an invalid reply.
  • 503 Service Unavailable. The server is overloaded or deliberately offline for maintenance.
  • 504 Gateway Timeout. The origin server took too long to answer and the proxy gave up waiting.

Search engines react to these codes in a predictable way. When Googlebot starts receiving 5xx responses, it slows its crawling so it does not make the strain worse. If the errors persist, Google begins dropping the affected URLs from its index. Google treats an unreachable robots.txt file returning a server error as a reason to hold back crawling of the whole site until it can read the file again.

For planned work, Google’s advice is to return a 503 with a Retry-After header, which says “back soon” without implying the content has gone. Even then, serving a 503 for more than a day or two risks pages starting to fall out of the index.

Why it matters

An outage has an obvious cost: nobody can buy, book or enquire while it lasts, and any paid clicks land on an error. The less obvious cost comes from intermittent errors. A site that fails for a few minutes at busy times, during a January sale, a Black Friday promotion or the morning an email newsletter goes out, may look fine whenever you check it, while customers and crawlers hit errors repeatedly.

Repeated server errors also slow how quickly Google discovers and refreshes your pages, because it reduces its crawl rate to protect your server. On a large shop that can mean new products or price changes take noticeably longer to appear. See crawl budget for why that matters on bigger sites.

Common mistakes

  • Maintenance pages that return 200 or 500. A 200 can get the holding page indexed in place of your content; a 500 says something is broken rather than paused. Use 503.
  • Nobody watching. Without uptime monitoring, owners learn about outages from customers, or not at all.
  • Error pages cached at the CDN. A brief origin failure gets stored and served to everyone for hours.
  • Hosting that cannot cope with peaks. Cheap shared hosting is fine for a small brochure site, but struggles when a campaign or a busy season brings a surge of visitors.
  • Blaming an algorithm update. A ranking drop that coincides with server errors is usually the errors.

How to act on it

Set up uptime monitoring that checks key pages every few minutes and alerts you by email or text. In Google Search Console, open Settings, then Crawl stats, and look at host status for server connectivity problems; the Page indexing report lists URLs that returned “Server error (5xx)”. Your host’s error logs show the cause behind each failure.

Fix the root cause: a faulty plugin, too little memory, slow database queries, or a hosting plan that no longer fits the site. Caching and a CDN take load off the origin server. For planned maintenance, schedule it for a quiet period and return 503 with Retry-After. Diagnosing server and crawl problems is part of my technical SEO service.

Do and do not

Do

  • Monitor uptime on your key pages with alerts
  • Return 503 with Retry-After during planned maintenance
  • Check Crawl stats for host problems after traffic drops

Do not

  • Serve maintenance pages with a 200 status
  • Let a CDN cache error responses
  • Ignore errors that only happen at busy times

Questions people ask about this

Will a short outage hurt my Google rankings?

A brief outage of minutes or a few hours rarely has lasting effects. Google slows its crawling and retries later, and pages usually stay indexed. Problems start when errors last for days or keep recurring, because Google then begins dropping affected pages and crawls the site less often.

What is the difference between a 500 and a 503 error?

A 500 means something on the server broke unexpectedly, such as a code error. A 503 means the server is temporarily unable to handle the request, through overload or planned maintenance, and is the code to use deliberately when a site is down for work. Search engines read a 503 as "come back later".

How do I find out whether my site has server errors?

Check Search Console's Crawl stats report for host status and the Page indexing report for URLs marked as server errors. Add an uptime monitoring service to alert you in real time, and ask your host for error logs, which record the cause of each failure. Intermittent errors often only show up in logs and monitoring, not when you visit the site yourself.

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.