Nothing yet — inputs you run here are remembered on this device.
Result appears here as you type
Nothing yet — inputs you run here are remembered on this device.
Result appears here as you type
Updated 2026-07-26
HTTP 502 Bad Gateway means a proxy, load balancer, or CDN sitting in front of your application successfully forwarded a request, but got back an invalid or unreadable response from the origin server — or no usable response at all. The failure is happening one layer behind whatever served you the error page.
The fix starts at the origin, not the proxy: check whether the application server is actually running, hasn't crashed, and isn't refusing connections — a 502 is very often the proxy's way of reporting "I couldn't get a sensible answer from your app." For every other status code at once, use the full HTTP Status Codes reference.
502
502 Bad Gateway — Server Error (5xx). A proxy or gateway got an invalid response from the upstream server.
500
500 Internal Server Error — a failure inside the origin server itself, not a proxy relaying a bad reply.
curl -X POST https://thesnaptools.com/api/v1/tools/http-502 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"502"}'