client: return timeout error for gateway timeout