Cloudflare · Internal Server Error

Cloudflare Error Code 500

The origin web server could not complete the request.

errorLast verified 2026-11-17Cloudflare 5xx errors: Error 500
Quick answer

The origin web server could not complete the request.

Code500
ProductCloudflare
Company / originCloudflare · United States
CategoryCloud & DevOps
Platform / versionsCloudflare edge and origin · Current edge and origin
Severityerror
Official sourceCloudflare 5xx errors: Error 500 ↗
Last verified2026-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

  1. Step 1

    Check the origin web server and application logs for the request and timestamp.

  2. Step 2

    If Workers are used, inspect the Worker logs for exceptions and CPU-limit errors.

  3. Step 3

    Pause Cloudflare temporarily to confirm whether the fault is at the origin or the edge.

When to escalate

Before you escalate: If the same Cloudflare 5xx code persists after checking the origin logs and temporarily pausing Cloudflare, contact the hosting provider with the exact code, URL, timestamp and cf-ray, plus HAR files with Cloudflare enabled and paused.

Related codes

CodeNameWhat it means
520Web Server Returned an Unknown ErrorThe origin returned an empty, unknown or malformed response.
522Connection Timed OutCloudflare 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.