return 504 when the graylog2 server node wasn't available

this leads to clean updating of the counters in the ui