Skip to content
Nazmul Nikhil
Menu

5XX Page in Ahrefs: Fixing 502, 503 and 504 Server Errors

Ahrefs flags pages returning 5XX server errors like 502, 503 or 504. Here's what each one means, how they affect Google, and how to stop them.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 2 min read
5XX Page in Ahrefs: Fixing 502, 503 and 504 Server Errors
Photo: Tony Marinescu on Unsplash

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

  1. 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.

  2. Check hosting limits. On CloudLinux shared hosting, cPanel's Resource Usage page shows when you hit CPU, memory or process limits.

  3. Add caching, so most requests don't reach the app at all.

  4. 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.

  5. 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.

Sources and references

TAGSAhrefs Site Audit5xx page5xx server errors seo503 service unavailable
Nazmul Nikhil

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.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com