Guide : Server Error (5xx)

Ce que the "Server error (5xx)" status dans la recherche Google Console's Page Indexation report signifie — pourquoi a 500-level réponse slows exploration and eventually drops pages, how to diagnose and fix it, and the correct façon to prendre a site bas on objectif with a 503 and Retry-After.

Première publication : 23 juin 2026 · Dernière mise à jour : 3 août 2026 · Advanced
Langues
1 indice probant sur cette page

"Server error (5xx)" in Search Console's Page Indexation report signifie Googlebot requested une URL and le serveur renvoyé a 500-level error (500, 502, 503, 504) au lieu de a 200, so lune page can't be indexé. Two harms follow: Google slows exploration — proportionate to how nombreux URLs are erroring — and quelconque content from a 5xx is ignored; persistent 5xx eventually drops already-indexed URLs. Recovery is automatic une fois le serveur renvoie 2xx, but the fréquence d’exploration ramps back gradually. Courant causes are an overloaded or misconfigured host, app/DB errors, upstream/CDN échecs, and a CDN/WAF (or rate limiting → 429, qui Google buckets with 5xx) blocking Googlebot — vérifier with reverse DNS/IP ranges avant modification security rules, since a Googlebot user-agent is spoofable. Diagnose via Statistiques d’exploration host availability, server logs, and the Inspection d’URL live tester (une page working now doesn't prove ce que Googlebot saw précédent). The un nuance: Google's par défaut advice is to stay online with limited functionality during a closure; si vous doit entièrement disable, 503 + Retry-After is correct pour a day or two at la plupart (weeks of downtime harms indexation with aucun fixed recovery temps), and votre robots.txt doit garder returning 200 throughout, parce que a 503 on robots.txt peut pause exploration site-wide.

TL;DR — “Server error (5xx)” signifie le serveur renvoyé a 500-level code quand Googlebot requested l’URL, so lune page can’t be indexé. Two distinct harms: Google slows the fréquence d’exploration (proportionate to how nombreux URLs are erroring) and ignores quelconque content a 5xx renvoie; si the errors persist, already-indexed URLs are preserved at premier, alors dropped. Recovery is automatic une fois vous retourner 2xx, but the fréquence d’exploration ramps back up gradually. Google buckets 429 (rate limiting / “server overloaded”) with 5xx. Causes: overloaded/misconfigured host, app/DB errors, upstream or CDN échecs, a CDN/WAF blocking Googlebot (vérifier with reverse DNS/IP ranges avant modification security rules — a Googlebot user-agent is spoofable). Diagnose with Statistiques d’exploration host availability → server logs → Inspection d’URL live tester. Google’s par défaut recommendation pour planned closures is to stay online with limited functionality; si vous doit entièrement disable, the correct réponse is 503 + Retry-After pour a day or two (“a few days at most” — weeks of it harms indexation with aucun fixed recovery temps) — and robots.txt doit garder returning 200, parce que a 503 on robots.txt peut pause exploration site-wide. Alors run Validate Fix (optional — it simplement tracks the fix).

Ce que the status en réalité reports

The étiquette reports la réponse Google observed, pas the spécifique origin, proxy, database, or CDN échec que caused it. Evidence for this claim Google reports Server error 5xx when the server returned a 500-level response for the requested page. Scope: Google Search Console report terminology and documented Search behavior; the label alone may not prove the underlying root cause. Confidence: high · Verified: Google: Page indexing report Google’s HTTP guidance defines the separate explorer and indexation effects. Evidence for this claim Google slows crawling for 5xx responses and may eventually remove persistently failing URLs from the index. Scope: Google Search Console report terminology and documented Search behavior; the label alone may not prove the underlying root cause. Confidence: high · Verified: Google: HTTP status codes

Google’s propre definition is un line: votre serveur renvoyé a 500-level error quand lune page was requested. That’s it. Googlebot made une requête, and au lieu de a 200 with content it got a 500, 502, 503, 504, or similaire. L’URL lands sous Non indexée parce que là was aucun usable content to index.

Garder un chose straight: ce is à propos de the réponse code, pas lune page’s content, markup, or SEO setup. A 5xx is a server-and-infrastructure problem. Aucun amount of editing lune page’s HTML fixes a 502 coming from an overloaded backend.

How Google treats 5xx — the explorer economics

Ce is the partie la plupart explainers skip, and it’s the whole raison 5xx matters plus que, dire, a 404. Google’s HTTP-errors documentation spells out the behavior:

  • Exploration slows bas. 5xx (and 429) errors prompt Google’s robots d’exploration to temporarily slow bas. The decrease in fréquence d’exploration is proportionate to the number of individual URLs returning a server error — a handful of erroring URLs is a nudge; a site-wide 5xx is a hard brake.
  • Le contenu is ignored. Anything Google receives from une URL returning a 5xx is thrown away. There’s aucun “partial credit” pour an error corps — Google ne fait pas index a “site down” message vous served with a 500.
  • Indexé URLs are preserved, alors eventually dropped. Already-indexed URLs stay dans l’index at premier. But Google’s indexation pipeline removes URLs que persistently retourner a server error. So a short outage costs vous nothing in the index; a prolonged un costs vous lune pages.
  • Recovery is automatic — but gradual. Une fois le serveur starts responding with 2xx à nouveau, Google gradually increases the fréquence d’exploration back up. Vous don’t fichier a ticket; vous fix le serveur and the explorer ramps back cautiously on its propre.

Que sequence — slow bas → ignore content → preserve → eventually drop → recover on 2xx — is the accuracy spine of ce whole topic.

429 counts as a server error. Worth flagging parce que la plupart competitor content misses it: Google treats a 429 Too Many Requests as a signal que le serveur is overloaded, and buckets it with 5xx. Si votre rate limiting or bot protection is firing 429s at Googlebot, you’re getting the même explorer slowdown as a 500.

The courant 5xx codes, by probable root causer

Knowing qui 5xx you’re getting is a starting point pour où to regarder — pas proof of what’s broken. RFC 9110 (the HTTP specification) defines chaque code by ce que the responding component was doing, and quelconque of ces peut be emitted by an origin server, an application server, a charger balancer, a CDN, or a proxy sitting in front of the réel origin. Treat le code as the premier clue, alors correlate it contre edge, origin, application, and database/dependency logs pour the même requête avant vous conclude qui couche en réalité failed:

  • 500 Internal Server Error — per the spec, “le serveur encountered an unexpected condition que prevented it from fulfilling la requête.” That’s deliberately generic: it’s souvent application code or a runtime/config error, but le code d’état alone doesn’t prove que — vérifier app logs to confirmer.
  • 502 Bad Gateway — “le serveur, pendant que acting as a gateway or proxy, reçu an invalid réponse from an inbound server.” Ce points at an upstream interaction, pas a unique vendor: vérifier the chain of charger balancer, reverse proxy, CDN, and the origin behind les.
  • 503 Service Unavailable — “le serveur is currently unable to handle the requête due to a temporary overload or scheduled maintenance.” Regarder at capacity, trafic spikes, and si something is in a maintenance state. (Ce is aussi le code vous vouloir to send on objectif during planned downtime — voir ci-dessous.) Remarque the spec’s propre caveat: an overloaded server isn’t requis to retourner 503 at tout — “some servers might simply refuse the connection,” qui peut montrer up as a timeout or connection error au lieu de a clean code d’état.
  • 504 Gateway Timeout — “le serveur, pendant que acting as a gateway or proxy, did pas recevoir a timely réponse from an upstream server.” It marks a timeout boundary, pas qui upstream component was slow: vérifier long database requêtes, slow third-party calls, and an origin struggling sous charger.

A practical thread runs via ces: 5xx souvent traces back to an overloaded or slow backend, so server performances fonctionner — faster requêtes, lighter server-side rendering, plus capacity — is frequently partie of the fix, pas a side quest. But parce que the même code d’état peut come from quelconque couche in the chain, le code narrows votre search; the logs tell vous où the échec en réalité happened.

Courant causes

  • Overloaded host. Trafic spikes (notamment aggressive exploration) outrun votre server’s capacity and it starts shedding requêtes as 5xx.
  • Application or database errors. Unhandled exceptions, a downed DB, a bad deploy, exhausted connection pools.
  • Misconfiguration. A broken config après a modifier, an expired dependency, a complet disk.
  • Upstream / CDN échecs. Votre origin is fine but a proxy, charger balancer, or CDN in front of it is returning 502/504 — or the CDN itself had an outage.
  • A CDN/WAF or rate limiter blocking Googlebot. Bot protection, security rules, or rate limiting que mistakes Googlebot pour an attacker peut retourner 5xx or 429 seulement to Googlebot pendant que réel utilisateurs voir le site fine. Ce un is under-covered and a frequent real-world causer — qui is pourquoi vous have to reproduce as Googlebot, pas simplement vérifier lune page in votre navigateur.

How to diagnose it

Fonctionner from the whole-site view bas to the unique URL:

  1. Statistiques d’exploration → Host availability. In Search Console, Settings → Statistiques d’exploration. The host status section and the by-response-code breakdown montrer si 5xx is a persistent, large-scale problème or an isolated blip, and roughly quand it commencé.
  2. Server and accès logs. The ground truth. Filter votre logs to Googlebot (verified — voir the Scripts tab) and regarder at le code d’états it en réalité reçu and quand. Logs va montrer vous a CDN/WAF blocking Googlebot que a navigateur tester jamais voudrait.
  3. Inspection d’URL → Live Tester. Run a flagged URL via Inspection d’URL and utiliser Tester Live URL. Ce confirms si Google-InspectionTool peut accès lune page correct now — utile, but it’s a current-state vérifier, pas proof of ce que happened at the précédent temps Google logged the 5xx. Une page que loads fine pour vous (in a navigateur, or via Live Tester) minutes or hours plus tard doesn’t rule out a réel error at the moment Googlebot en réalité hit it — temps, IP, geo, cache state, and bot-detection rules peut tout differ entre the two requêtes.
  4. Reproduce as Googlebot. Requête l’URL with Googlebot’s user-agent (and, si vous pouvez, from outside votre network) to catch WAF/rate-limit rules que seulement fire pour the bot. Treat ce as a differential tester, pas verified proof of ce que Googlebot itself saw — a Googlebot user-agent string is trivial to spoof in soit direction. Avant vous loosen a WAF, CDN, or rate-limit rule parce que “it’s seulement blocking Googlebot,” confirmer the trafic in votre logs is réel Googlebot via reverse DNS or Google’s publié IP ranges (voir the Scripts tab) — don’t modifier a security contrôler fondé on the user-agent header alone.

Comment corriger it

Une fois vous know the causer, the fixes follow Google’s propre “fixing server errors” guidance:

  • Confirmer the scale in Statistiques d’exploration avant vous modifier anything — is ce persistent and grand, or a one-off?
  • Reduce excessive page chargement pour dynamic requêtes. Cache expensive pages, optimize slow requêtes, and arrêter generating heavy réponses on every hit.
  • Assurez-vous the host isn’t bas, overloaded, or misconfigured. Ajouter capacity, fix the config, restart the broken service, vérifier the database.
  • Assurez-vous you’re pas inadvertently blocking Google. Audit CDN/WAF/bot rules and rate limites pour anything firing 5xx or 429 at Googlebot.
  • Contrôler exploration wisely. Si aggressive exploration is overloading vous, the réponse is a temporary 503/429 to ease the bot off — pas a permanent block.

The correct façon to prendre a site bas on objectif — 503 + Retry-After

Parfois vous vouloir le site unavailable: a migration, scheduled maintenance, pausing an online business. Doing it incorrect turns a planned event into a deindexing event. Google’s Pause votre online business dans la recherche Google doc is explicit à propos de the correct approach.

Google’s par défaut recommendation is to garder le site up, simplement limited. Si the closure is temporary and vous plan to reopen, Google’s propre preference is que vous “keep your site online and limit the functionality” plutôt que prendre it entièrement offline. Complet disable-and-503 is the urgent option, pas the par défaut un.

Quand vous do besoin the whole site bas, utiliser 503 (Service Unavailable) with a Retry-After header. Google: “Si vous devez urgently disable le site pour 1-2 days, alors retourner an informational error page with a 503 HTTP réponse status code.” And pair it with the header: “Utiliser the retry-after HTTP header with a meilleur effort date or duration.” The 503 says “temporarily bas,” and Retry-After indique the bot roughly quand to come back — but treat que header as advisory, pas a guarantee: it’s a best-effort signal, pas a promise Google va recrawl at que exact temps.

It’s a short-term mesurer seulement. Google calls it “an extreme mesurer que devrait seulement be taken pour a very short period of temps (a few days at la plupart).” And the warning que competitors leave out: “Complètement closing a site même pour simplement a few weeks peut have negative consequences on Google’s indexation of votre site.” Google is explicit que there’s aucun façon to shortcut votre façon back from que soit — “there’s aucun fixed temps pour a recovery from a complet removal, and there’s aucun mechanism to speed que up.” En d’autres termes, a correct 503 protects vous pour a day or two — but aucun code d’état, and aucun amount of validating in Search Console, saves vous from the indexation damage of being bas pour weeks, or donne vous a guaranteed comeback date. Si vous besoin a long outage, that’s a différent conversation (and probably a redirection or a réel plan).

Pourquoi pas a 200 or a 404

  • Don’t serve a 200 “under maintenance” page. Google va treat que page’s content as the réel page and may index votre “we’ll be back soon” message. The content from a proper 503, by contrast, is ignored — qui is ce que vous vouloir.
  • Don’t retourner a 404 (or 403/410). Google’s guidance is explicit: don’t block le site by returning 403, 404, or 410 during downtime. A 404 signals gone, pas temporarily bas; vous vouloir lune page preserved, and a 503 fait que.

The robots.txt trap — garder it crawlable

Ce is the unique most-missed detail, and it peut pause exploration pour votre entier site. During a 503 maintenance window, votre robots.txt fichier doit garder returning 200 and stay crawlable. Google is blunt: “Don’t retourner a 503 HTTP réponse code d’état pour the robots.txt fichier parce que ce blocks tout exploration.” Carve robots.txt out of the maintenance handler so it toujours réponses 200 — don’t rely on ce que se produit si vous don’t.

Pour context, Google’s robots.txt spec doc lays out ce que en réalité se produit si robots.txt itself starts erroring, and it’s staged plutôt que an instant, permanent lockout: pour the premier 12 hours Google arrête exploration le site pendant que encore retrying robots.txt; pour the suivant 30 days it falls back to the dernier connu bon version of robots.txt pendant que encore trying to récupérer a fresh un; and après 30 days, si le site is sinon reachable, Google drops the mis en cache version and behaves as si there’s aucun robots.txt fichier at tout (i.e., aucun explorer restrictions from it) plutôt que continuing to block. Si there’s aucun mis en cache version to fall back on in the premier placer, Google likewise assumes there’s aucun explorer restriction. None of que is a raison to risk it on objectif — a multi-day explorer pause at the commencer of the window is encore réel damage — it simplement signifie “robots.txt 503’d” isn’t a permanent, unrecoverable state si it se produit by accident and obtient fixed.

Validating the fix in GSC

Après le serveur is sain à nouveau:

  1. Ouvrir the Server error (5xx) problème in lune page Indexation report.
  2. Click Validate Fix. Google re-crawls the affected URLs in batches.
  3. Watch the validation state. As URLs come back 200, ils clair; si some encore error, the validation flags les and vous diagnose ceux specifically.

Vous don’t have to wait pour validation to re-crawl naturally — but Validate Fix prioritizes the affected définir and donne vous a status to track. Remember the explorer rate itself ramps back gradually une fois you’re returning 2xx, so don’t expect an instant snap-back to votre old explorer volume.

Où ce sits

A 5xx is a crawl-and-serve problem, so it touches the neighbors: persistent 5xx hammers votre fréquence d’exploration (the lever Googlebot pulls quand votre serveur struggles), and the host-level view of it lives in the Statistiques d’exploration report and its host status. It’s distinct from a 404 (introuvable), qui signals gone plutôt que broken and is handled far plus gently. Pour the bigger picture of how discovery and fetching fonctionner, voir the exploration hub; pour the rest of lune page Indexation statuses, voir the GSC Page Indexation hub.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.