← All status codes
520

Web Server Error

Cloudflare-specific. The origin server returned an unexpected response. Often means the origin is returning an empty response, a response that's too large, or an invalid HTTP response.

COMMON CAUSES

Origin returned an empty response
Origin response headers too large (>32KB)
Origin returned invalid HTTP
Origin closed the connection unexpectedly

HOW TO FIX IT

Check origin server logs
Ensure responses include proper HTTP headers
Verify the origin isn't dropping connections

What this means for monitoring

If you're behind Cloudflare and see 520, the issue is between Cloudflare and your origin. Check your origin server directly to isolate the problem.

Related status codes

5xx Server Error

Get alerted when your endpoints return unexpected status codes.

Larm checks your HTTP endpoints from multiple global locations and alerts you when they return status codes outside your expected range.