HTTP 502 Bad Gateway
Reverse proxy (Caddy/Nginx/Cloudflare) received an invalid or refused response from the upstream backend.
Runs locally in browser
Free · No login
Available (Noindex) · 2026-11-24
v1.0.0
Identifier: HTTP 502 Bad Gateway
Platform: HTTP
Interactive Diagnostic Checklist
Safe Diagnostic Command:
ss -tlnp && curl -i http://127.0.0.1:8080/health
Technical Explanation
Reverse proxy (Caddy/Nginx/Cloudflare) received an invalid or refused response from the upstream backend. Recommended verified resolution path: Confirm upstream process is running, listening on the expected port, and healthy.
Worked Examples
- Read-only diagnostic command: ss -tlnp && curl -i http://127.0.0.1:8080/health
Limitations & Assumptions
- Error codes can arise from multiple layers (client, CDN, reverse proxy, application, or OS). Always confirm which layer emitted the error before applying changes.
Source References & Verification
- RFC 9110 — HTTP Semantics & Official Vendor Documentation
- Linux man-pages / Python / MDN / Docker Official Docs
Resource ID: err-http-502 · Technical check: 2026-11-24 (noindex pending/withheld from search)