0

I use Apache 2.4 as web server. When it exceeds max connections limit, what response code the client receives from the web server?

Tanu Gupta
  • 602
  • 1
  • 11
  • 26

1 Answers1

1

Apache throws 504 status code response to client.

504 GATEWAY TIMEOUT

The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.

Nitin Dhomse
  • 2,524
  • 1
  • 12
  • 24
  • Thanks Nitin. I receive status code 502 when my requests are not able to hit Apache. What could be the possible cause of getting 502? – Tanu Gupta Apr 05 '18 at 09:50
  • provide the complete message with status code, timeout or proxy – Nitin Dhomse Apr 05 '18 at 09:52
  • I receive below 502 errors on proxy server: 1. "upstream prematurely closed connection while reading response header from upstream," 2. "upstream timed out (110: Connection timed out) while connecting to upstream" – Tanu Gupta Apr 06 '18 at 10:32