In short
Ahrefs flags "5XX page" for internal URLs that return a 5xx status other than 500, most often 502, 503 or 504. Google slows crawling when it sees 5xx errors and drops URLs that keep returning them. These errors usually come from an overloaded server, a crashed app behind a proxy, or a CDN that can't reach your origin. Find out which code you're getting, then fix capacity, timeouts or the app.
Server errors other than 500 usually mean the server, or something in front of it, couldn't cope at that moment. They're often linked to load, timeouts or proxies.
What each code means
| Code | Meaning | Typical cause |
|---|---|---|
| 502 | Bad Gateway | The proxy or CDN got an invalid response; the app behind it crashed or restarted |
| 503 | Service Unavailable | Server overloaded, in maintenance mode, or hit hosting resource limits |
| 504 | Gateway Timeout | The app took too long to answer the proxy or CDN |
Use 503 for planned downtime
503 is the right code for short maintenance. Google says a 503 tells it to come back later, but URLs that keep returning 5xx are eventually dropped from the index. Keep maintenance short.
How to fix it
Check whether it was the crawl. If errors appear only during audits, lower the Ahrefs crawl speed and see if they disappear. If they do, your server has little headroom, and busy days may cause the same errors for real visitors.
Check hosting limits. On CloudLinux shared hosting, cPanel's Resource Usage page shows when you hit CPU, memory or process limits.
Add caching, so most requests don't reach the app at all.
For 502s on Node.js apps, check the app's logs for crashes. An app that restarts on every error causes 502s while it starts again.
For 504s, find the slow pages and fix the slow queries or external API calls behind them.
WordPress: heavy plugins and uncached pages under load are the usual cause of 503s on shared hosting. Page caching helps the most.
Shopify, Webflow and Wix: 5xx errors are rare and usually short platform incidents. Check the status page if they persist.
Custom builds: add health checks, restart crashed processes automatically, and set timeouts on external calls so one slow API doesn't hang the page.
Common mistakes
Leaving maintenance mode on for days, which can drop pages from search results.
Blaming Ahrefs. If a crawler at modest speed can overload the server, so can a busy day.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Google Search Central, How HTTP status codes, and network and DNS errors affect Google Search

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



