Error Code Portal
CloudflareCloudflare HTTP errorsError code

502

Error 502 bad gateway or error 504 gateway timeout

Alternative forms: Error 502

Code 502 · An issue reported by Cloudflare HTTP errors.

An HTTP 502 or 504 error indicates that Cloudflare is unable to establish contact with your origin web server. There are two possible causes:

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.