Recently, users accessing proxy to access internet has been receiving

error like 504 gateway timeout very often.

Using BM 35 server attached to a adsl router with modem. (local ISP)
What could be the error behind it??