---
title: "5xx server error"
description: "A 5xx server error (500 to 599) means the site's server failed to answer. Google slows crawling and drops pages that keep failing."
url: https://ursy.com/wiki/5xx-server-error/
updated: 2026-11-24T23:00:34+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/5xx-server-error/
---

# 5xx server error

> A 5xx server error (500 to 599) means the site's server failed to answer. Google slows crawling and drops pages that keep failing.

**A 5xx server error is any [HTTP](https://ursy.com/wiki/http/) status code from 500 to 599, which means the website’s server, or something it relies on, failed to answer a request that may have been perfectly fine.** The best known are 500, 502, 503 and 504. Unlike 4xx codes, the fault sits with the site, not the visitor, and [Google](https://ursy.com/wiki/google/) slows its [crawling](https://ursy.com/wiki/crawling/) when it sees them.

## What is a 5xx server error? {#what-is-a-5xx-server-error}

The HTTP standard, [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-server-error-5xx), says a 5xx code means the server “is aware that it has erred or is incapable of performing the requested method”. It is one band in the [HTTP status code](https://ursy.com/wiki/http-status-code/) system. Visitors see a blank page, a plain “Internal Server Error” or a branded error screen.

## Which 5xx codes are common? {#which-5xx-codes-are-common}

| Code | Name | What RFC 9110 says it means |
| --- | --- | --- |
| 500 | Internal Server Error | An unexpected condition stopped the server |
| 501 | Not Implemented | The server does not support what the request needs |
| 502 | Bad Gateway | A gateway or proxy got an invalid response from the server behind it |
| 503 | Service Unavailable | Temporary overload or planned maintenance |
| 504 | Gateway Timeout | A gateway or proxy waited too long for the server behind it |
| 505 | HTTP Version Not Supported | The server will not use that version of HTTP |

502 has its own page: [502 Bad Gateway](https://ursy.com/wiki/502-bad-gateway/).

## What causes them? {#what-causes-them}

- **Code errors.**  A plugin update, a theme change or a PHP fault. These usually give 500.
- **Too much traffic for the server.**  All the [PHP workers](https://ursy.com/wiki/php-workers/) are busy, so new requests queue and time out. A crawl burst from [bots](https://ursy.com/wiki/bot-web-robot/) can do this as well as a sale.
- **A slow database or outside service.**  The page waits on a payment, stock or search call that never comes back.
- **Layers that cannot talk.**  A [CDN](https://ursy.com/wiki/cdn/) cannot reach the [origin server](https://ursy.com/wiki/origin-server/), so it shows 502 or 504.
- **Maintenance.**  A planned 503 while you update the site.
- **Attacks.**  A [DDoS attack](https://ursy.com/wiki/ddos-attack/) or a scraper flood can tip a small server over.

## Why does it matter for search? {#why-does-it-matter-for-search}

Google reads 5xx codes as a sign of trouble at your end. Its page on [how status codes affect its crawlers](https://developers.google.com/search/docs/crawling-indexing/http-network-errors) sets out the steps:

- **Crawling slows down.**  5xx and 429 make Google’s crawlers back off for a while. For 500, 502 and 503 the drop is in line with how many addresses fail.
- **Indexed pages are kept at first.**  Then, if the error goes on, they are eventually dropped.
- **Recovery is gradual.**  Once pages answer 2xx again, Google slowly raises the [crawl rate](https://ursy.com/wiki/crawl-rate/).

So a short outage usually costs little. A week of errors can cost rankings and [crawl budget](https://ursy.com/wiki/crawl-budget/). Google’s page on [reducing the crawl rate](https://developers.google.com/search/docs/crawling-indexing/reduce-crawl-rate) agrees: you may send 500, 503 or 429 to slow [Googlebot](https://ursy.com/wiki/googlebot/) in an emergency, but not for more than 1 to 2 days, because a page that keeps failing for days may be dropped from the index.

### What if robots.txt returns 5xx? {#what-if-robots-txt-returns-5xx}

This one is serious. Google’s [robots.txt rules](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt) say that if your [robots.txt](https://ursy.com/wiki/robots-txt/) gives a server error, Google stops crawling the site for the first 12 hours. For up to 30 days it uses the last good copy it saved. After that it decides based on whether the rest of the site is reachable. A broken robots.txt can pause crawling of every page, even ones that work.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

An AI fetcher that gets a 5xx has no page to quote. A [live fetcher](https://ursy.com/wiki/live-fetcher/) such as [ChatGPT-User](https://ursy.com/wiki/chatgpt-user/) works in real time while someone waits, so it is unlikely to come back later for the same question. If your server fails when it is busy, the moments with most interest are the ones where AI tools see errors. [AI crawlers](https://ursy.com/wiki/ai-crawler/) can also cause the load: a heavy crawl can fill your workers and give 503s to people too. See [will AI crawlers slow my website](https://ursy.com/guides/will-ai-crawlers-slow-my-website/).

## How does it work? {#how-does-it-work}

Most sites have layers: an [edge cache](https://ursy.com/wiki/edge-cache/), a web server, the app (often PHP) and a database. Each can fail. If the app crashes, the web server sends 500. If the app is too slow, the layer in front gives up and sends 504. If it gets a broken reply, 502. The code tells you which layer to look at first. A cached copy at the edge can hide an outage from some visitors, which is one reason [caching](https://ursy.com/wiki/caching/) helps.

## Common mistakes {#common-mistakes}

- **Error pages that answer 200.**  A “something went wrong” page sent with 200 looks like real content to Google. That is a [soft 404](https://ursy.com/wiki/soft-404/) problem in reverse. Send the true code.
- **503 without Retry-After.**  [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/503) says 503 is for temporary problems and should carry a Retry-After header with a recovery estimate where you can.
- **Caching the error.**  MDN warns that 503 responses should not usually be cached, or visitors keep seeing the error after the fix.
- **Long maintenance mode.**  Fine for an hour. Not for a week.
- **Ignoring slow pages.**  A slow [time to first byte](https://ursy.com/wiki/time-to-first-byte/) is often the warning before 504s start.
- **Blaming Google.**  If Googlebot crawls less after an outage, that is it being polite. Fix the errors and it comes back.

## A worked example {#a-worked-example}

A shop updates a plugin on Friday evening. Product pages start to fail.

| When | What the site sends | What Google does |
| --- | --- | --- |
| Friday 18:00 | 500 on all product pages | Crawl rate drops |
| Saturday 10:00 | Owner rolls back the plugin; 200 again | Pages kept in the index |
| Next week | 200 | Crawl rate climbs back slowly |

Had the error run for 2 weeks instead of 16 hours, Google’s rules say those pages could have been dropped. The fix was the same. Only the speed changed the cost.

## How to check it {#how-to-check-it}

1. Test one address with our [HTTP Header Checker](https://ursy.com/http-header-checker/) to see the code and which server sent it.
2. Check if the site is down for everyone with the [Website Down Checker](https://ursy.com/webmaster-tools/website-down-checker/).
3. Run the [Robots.txt Checker](https://ursy.com/robots-txt-checker/). A 5xx on that one file matters more than any other.
4. Crawl your links with the [Broken Link Checker](https://ursy.com/broken-link-checker/) to find links on your pages that do not load.
5. In Search Console, the [page indexing report](https://ursy.com/wiki/page-indexing-report-index-coverage/) lists “Server error (5xx)”, which [Google’s help](https://support.google.com/webmasters/answer/7440203) describes as a 500-level answer to its request.
6. Read the [server logs](https://ursy.com/wiki/server-logs/) to match errors to time, page and bot. A [log file analysis](https://ursy.com/wiki/log-file-analysis/) shows whether crawlers caused the load.
7. In URSY Pro, the [Page speed monitor](https://ursy.com/pro/page-speed-monitor/) catches slow pages early, and [Crawl budget by bot](https://ursy.com/pro/crawl-budget-by-bot/) shows who is using your server.

## Questions {#questions}

### Is a 5xx my fault or my visitor’s? {#is-a-5xx-my-fault-or-my-visitors}

The site’s. The request reached you; your side could not answer it.

### How long can my site be down before Google drops pages? {#how-long-can-my-site-be-down-before-google-drops-pages}

Google does not give an exact number. It says 1 to 2 days of deliberate errors is the most it advises, and that failing for several days risks removal.

### Should maintenance pages use 503? {#should-maintenance-pages-use-503}

Yes, with a Retry-After header and a short, friendly message.

### Why do bots see 5xx more than people? {#why-do-bots-see-5xx-more-than-people}

Bots often reach pages no cache holds, so they [hit](https://ursy.com/wiki/hit-analytics/) the busy server directly.

## Related words {#related-words}

- [502 Bad Gateway](https://ursy.com/wiki/502-bad-gateway/)
- [HTTP status code](https://ursy.com/wiki/http-status-code/)
- [Crawl error](https://ursy.com/wiki/crawl-error/)
- [PHP workers](https://ursy.com/wiki/php-workers/)
- [Why your website is slow](https://ursy.com/wiki/why-your-website-is-slow/)

## Sources {#sources}

- [RFC 9110: HTTP Semantics, section 15.6 (June 2022)](https://www.rfc-editor.org/rfc/rfc9110.html#name-server-error-5xx), checked 24 November 2026
- [Google: How HTTP status codes affect Google’s crawlers](https://developers.google.com/search/docs/crawling-indexing/http-network-errors), checked 24 November 2026
- [Google: Reduce the Google crawl rate](https://developers.google.com/search/docs/crawling-indexing/reduce-crawl-rate), checked 24 November 2026
- [Google: How Google interprets the robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt), checked 24 November 2026
- [MDN: 503 Service Unavailable](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/503), checked 24 November 2026
- [Search Console Help: Page indexing report](https://support.google.com/webmasters/answer/7440203), checked 24 November 2026

*Updated 24 November 2026 by URSY.*
