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.
On this page
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
Cross-Protocol Equivalents
Compare With
Guides
Glossary
Frequently Asked Questions
What is 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 do you see WebSocket 1014 Bad Gateway?
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 WebSocket 1014 Bad Gateway?
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.