Cloudflare Error Code 500
The origin web server could not complete the request.
The origin web server could not complete the request.
| Code | 500 |
| Product | Cloudflare |
| Company / origin | Cloudflare · United States |
| Category | Cloud & DevOps |
| Platform / versions | Cloudflare edge and origin · Current edge and origin |
| Severity | error |
| Official source | Cloudflare 5xx errors: Error 500 ↗ |
| Last verified | 2026-11-17 |
What does Cloudflare error 500 mean?
Cloudflare Error 500 means the origin web server returned an internal error or failed before it could produce a valid response. It can also come from a Cloudflare Worker exception or a Page Rule configuration issue, so the origin and edge logs both matter.
Common causes
- The origin application threw an unhandled exception or lost its database connection.
- A Cloudflare Worker raised a runtime JavaScript exception.
- A Page Rule, Transform Rule or origin configuration changed recently.
How to fix it
- Step 1
Check the origin web server and application logs for the request and timestamp.
- Step 2
If Workers are used, inspect the Worker logs for exceptions and CPU-limit errors.
- Step 3
Pause Cloudflare temporarily to confirm whether the fault is at the origin or the edge.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
520 | Web Server Returned an Unknown Error | The origin returned an empty, unknown or malformed response. |
522 | Connection Timed Out | Cloudflare could not open a TCP connection to the origin in time. |
Source & verification
This page was checked against Cloudflare 5xx errors: Error 500 on 2026-11-17. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Cloudflare. Always confirm destructive or security-sensitive steps with the official documentation.