¡Aprende más!

What is a 502 Bad Gateway?

The 502 Bad Gateway status code indicates the gateway or proxy server received an invalid or faulty response from one of the servers trying to fulfill your request.

Multiple servers sometimes work together to fulfill a request. The initial server you connected to acts as a gateway server, making it the intermediary between you and the other servers containing the requested resource.

When one of these servers cannot complete the request, maybe because it is down, misconfigured, or experiencing connectivity issues, the gateway server returns a 502 Bad Gateway status code.

The 502 Bad Gateway error belongs to the 5xx series of HTTP status codes.

  • 5 indicates there is an issue with the server or its configuration
  • xx is a placeholder for two numbers that provide more information about the server error
🇪🇸 Español