Look up a Rails HTTP Status Code

502 - Bad Gateway

Rails HTTP Status code :bad_gateway

When to use status code 502

The server was acting as a gateway or proxy and received an invalid response from the upstream server.