502 Bad Gateway

Explanation:

The 502 Bad Gateway status code indicates that the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.

Usage:

This status code should be used when the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.

Attentions:

  • The server should include information about the upstream server in the response message if possible.
  • The response should include a message body with information about the upstream server.

Sample:

undefined