Community Tip - Fixing 5XX Errors & All 5XX Tips

Use this Community Tip to understand more about 5XX errors, identify if they are from the origin server or the proxy, and click-through to supporting Community Tips for troubleshooting.

Generally, 5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host. The server was able to detect the error and thus will not return the potentially malformed response to the client. These error codes be used as a response to any request method and fall into two categories, 5xx errors from your host and other 5xx errors that Cloudflare generates when errors contacting the origin are encountered. This tip addresses both types of 5xx errors.

Banner in tip catalog

Origin 5xx Errors
When the origin server sends an error, it should include an explanation, which should be displayed by User-Agent, with the exception of a HEAD request. The following errors are typically returned by the origin web server.

500 Internal Server Error
501 Not Implemented
502 / 504 Bad gateway / Gateway Timeout
503 Service Unavailable
505 HTTP Version Not Supported
508 Resource Limit Is Reached

Other 5xx Errors
520 unknown error
521 Web server is down
Email alert, origin unreachable
522 Connection timed out
523 Origin is Unreachable
524 A Timeout Error
525 SSL handshake failed
526 Invalid SSL certificate
527 Railgun Listener to Origin Error
530 Origin DNS Error

Third-Party Troubleshooting Suggestions
Answered on :q:

If You Need More Help
This community of other Cloudflare users may be able to assist you, login to Cloudflare and post your question to the Community. When you post on the Community make sure to include as much of this information as possible: the specific error message you are seeing, the URLs this is happening on, screen shot of the error, and the steps to reproduce the error. Please indicate what troubleshooting steps you’ve tried in order to help us help you.

This is a Cloudflare Community Tip, to review other tips, click here.

Çevirme…traduzir…翻译…traducir…Traduire…Übersetzen…:greyg: Translate this Tip

FXAFCT 112519

502 504 525 524 errors
Getting 5xx errors twice a day
Web server is returning an unknown error
Coming Error 520
522 error - i contacted the hosting provider
Community Tip - Alle veröffentlichten Tipps
Cloudflare Argo Tunnel misbehaving over LTE
Problems with 5XX errors (522/524)
Not being circulated by Google search engines
New CF Dashboard customized to user preferences
Error 503 Caused by CloudFlare
Email routing - reject (instead of drop) specific address
5xx error information
5xx error information
5xx error information
I switch my web to cloud flare server i face internal server error 500
Sluggish sites and slew of 52X errors - Anyone else?
Retrying connection after source responded with error
Zaraz Bug Report
Looking for health check 5xx error example
Looking for health check 5xx error example
Origin Monitoring & Downloading 5xx error logs
503 error in dashboard
社區提示 - 所有提示
Dicas da comunidade - Todas as dicas
Forum duscussions topics
R2 unreliable? Internal errors
เคล็ดลับชุมชน - เคล็ดลับทั้งหมด
500 Internal Server Error for all CF sites
CommunityTip - Tất cả các mẹo
It seems caching Always Online caching does not work for me
TipsKomunitas - Semua Tips
Cloudflare blocks iframe javascript event
How to setup 503 page if backend app is down
HELP! I think cloudflare banned my VPS
コミュニティのヒント - 公開されているすべてのヒント
Google Search Console 5xx errors on pages referring back to Wordpress wp-admin page
社区提示 - 所有提示
CommunityTip - Todas la CommunityTips
Analytics: see paths/urls for non 200 responses (4xx and 5xx)
Origin Monitoring & Downloading 5xx error logs
커뮤니티 팁 - 모든 팁
CommunityTip - Tous les conseils
There are increase in 524 errors in few last days
Site not loading properly through Cloudflare CDN
How to get VUEJS to work with cloudflare
Cloudflare Error
IP address of cloudflare server when displaying error message
Directly accessing server (by IP) works fine but accessing through Cloudflare sometimes timeouts
SSL already set up, is there a way to use CloudFlare?
Error 401 when I try to edit my web site
Invalid SSL and host error
Server 5xx and Performance
Are there any restrictions on Cloudflare workers to make fetch request to another workers?
Cloudflare CDN wlwmanifest error
How to access Error Analytics
Any chance there are more tokens for custom error pages?
5xx errors on my website
Unexpected random 5xx errors on the origin
Cloudflare returning multiple 5xx sporadically
Too short timeout time for CloudFlare protection services
Error 502 Bad gateway / Error 532 Origin is unreachable
Советы сообщества - Все советы
[Cloudflare Proxy] 503 Service Temporarily Available only on POST Requests
Random errors
Telia customers experiencing slowdowns on our CloudFlare accelerated site
Login and other buttons using Jquery are not working throwing error 500 or 524
Community Tip - All Published Tips
Consigli della community - Tutti i suggerimenti
Issue with 5xx error
Error 520 not found
Nginx Reverse Proxy and Cloudflare issues
Timeout errors
Error 520 when accessing the website
Error 520 website not opening
After adding Cloudflare free plan i got an invalid SSL error ( I have installed SSL certificate by Let's Encrypt and before it was working fine
Community Tip - Helpful Links, on Display
Domain is pointing to cloudflare DNS when proxy is applied
CloudFlare is malfunctioning and my site is crashing
520 errors on some sites
My Website on Cloudflare Are showing Error
If you are monitoring with NewRelic Synthetics while using Cloudflare, you will not be able to properly detect a server down
I am getting 5xx error
Error 5xx log page admin
Multiple 520, 522, 524, and 525 with Full and Full (strict) modes
SSL Handshake Issue