Skip to content

502 Bad Gateway (HTTP Status Code 502)

Updated: at 09:12 AM

Status code 502 Bad Gateway is an HTTP error response code indicating that a server acting as a gateway or proxy received an invalid response from an upstream server. This error occurs when there is a communication issue between servers in the network chain, rather than a problem with the client’s request.

How It Works

  1. Client Request: The client sends a request to the gateway/proxy server.

  2. Gateway Processing: The gateway/proxy server attempts to fulfill the request by forwarding it to an upstream server.

  3. Communication Error: The gateway receives an invalid or incomplete response from the upstream server.

  4. Error Response: The gateway returns a 502 Bad Gateway error to the client to indicate the communication failure.

What to Do When Encountering in a Browser

  1. Refresh the Page:
  1. User Troubleshooting:
  1. Advanced Troubleshooting (for administrators):

Overall, status code 502 Bad Gateway indicates a server-side communication problem. While users can try basic troubleshooting steps, resolving the issue typically requires action from the system administrators or service providers managing the affected servers.