CS FundamentalsHardGATE CS · Product company CS fundamentals

A reverse proxy forwards a request to an application server. Which status does the proxy return to the client when the application server sends back an invalid response, and which when the application server does not answer in time?

  1. A. 504 Gateway Timeout, then 502 Bad Gateway
  2. B. 500 Internal Server Error, then 408 Request Timeout
  3. C. 502 Bad Gateway, then 504 Gateway Timeout
  4. D. 503 Service Unavailable, then 504 Gateway Timeout

Correct answer: C. 502 Bad Gateway, then 504 Gateway Timeout

502 means the gateway received an invalid response from upstream; 504 means it gave up waiting. 408 is the server timing out the CLIENT's request, and 503 means the server itself is overloaded or in maintenance.

More Computer Networks questions

Exams that ask this topic