Error 500
Last updated Apr 23, 2026
Error 500: internal server error
This error indicates a problem with your origin web server, preventing it from fulfilling the request.
Common causes
The Error establishing database connection message is a common HTTP 500 error, typically indicating an origin web server issue. If you encounter this error, contact your hosting provider for assistance.
Resolution
When dealing with most 5XX errors, the first step is to reach out to your hosting provider or site administrator to help troubleshoot the issue. Share the necessary error details to your hosting provider to assist troubleshooting the issue.
However, if the 500 error contains cloudflare or cloudflare-nginx in the HTML response body, contact Cloudflare support and provide the following details:
- Your domain name
- The time and timezone of the
500error occurrence - The output of
www.example.com/cdn-cgi/tracefrom the browser where the500error was observed (replacewww.example.comwith your actual domain and hostname)
Note
If you observe blank or white pages when visiting your website, confirm whether the issue occurs when temporarily pausing Cloudflare and contact your hosting provider for assistance.
Workers-specific causes
Error 500 can also occur when using Cloudflare Workers:
- A Cloudflare Worker throws a runtime JavaScript exception (see Error 1101)
If you are using Workers, check the Workers dashboard for error logs and exceptions.
Troubleshooting steps
- Check recent configuration changes: Review any recent changes to Page Rules, Transform Rules, or Workers that might affect request processing.
- Verify origin connectivity: Ensure your origin server is responding correctly and within acceptable timeframes.
- Review Workers logs: If using Workers, check for JavaScript exceptions or CPU time limit errors in the Workers dashboard.
- Test with Cloudflare paused: Temporarily pause Cloudflare to determine if the issue is origin-related.
Known Cloudflare issue leading to HTTP Error 500
- A configuration issue on Page Rules can generate HTTP Error
500. Refer to Page Rules troubleshooting for more details and resolution.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-500/#page","headline":"Error 500","description":"Troubleshoot HTTP 500 error responses.","url":"https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-500/","inLanguage":"en","image":"https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-500/og.png?v=a1165ef52f2f0464","dateModified":"2026-04-23","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Troubleshoot HTTP 501 error responses. title: Error 501 image: https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-501/og.png?v=ec50883a91e3c995
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/support/llms.txt
Use this file to discover all available pages before exploring further.
Docs