There is no way to set a timeout on client side so that if server cannot handle request or is unavailable then the client would fail fast.