WebSocket

1014 Bad Gateway

The server acting as a gateway or proxy received an invalid response from an upstream server it accessed while attempting to fulfill the request.

When You See This Code

A reverse proxy or API gateway tried to establish a WebSocket connection to a backend server but received an invalid or no response. The upstream server may be down or misconfigured.

How to Fix

Check the health of the upstream/backend WebSocket server. Verify the proxy configuration routes WebSocket upgrade requests correctly and that the backend is listening on the expected port.

Specification

View RFC / Specification →

Cross-Protocol Equivalents