Fixing 5xx errors caused by your firewall
Diagnose 502, 503, and 520 responses that only appear in Lemwatch — usually WAF rate limits or origin timeouts.
Quick answer#
5xx errors that only Lemwatch sees are usually your WAF rate-limiting our probes or your origin timing out. Whitelist Lemwatch IPs, then look at the exact status code — 502/504 point to origin, 520–524 point to Cloudflare.
What each code means#
Where to find it in Lemwatch#
Site → Incidents → open the incident → Response details shows the exact status, headers, and CF-Ray ID.
How to fix it#
FAQ#
Why does the site load fine for me but Lemwatch sees 503?#
Your browser is likely cached at Cloudflare's edge or exempt from the rate limit — Lemwatch's probes are not.
Should I disable my WAF to test?#
No — just add a Skip rule for Lemwatch IPs and re-test.
Related#
Related Articles
Cloudflare is blocking Lemwatch checks
Fix Cloudflare "Challenge", "Managed Challenge", or 1020 errors that make Lemwatch see your site as down.
Whitelist Lemwatch monitoring IPs
Allow Lemwatch checks through your firewall, WAF, or rate limiter using our published IP ranges and User-Agent.
My Site Shows as Down But It's Working
Why LemWatch might report downtime when your site is actually accessible.
What is the "Is [site] down?" tool?
The is-down tool checks any public URL from an outside vantage point and tells you if the problem is you or the site itself.