in nginx, usually I setup a block to render a page to inform user that upstream is down :
# redirect server error pages to the static page /50x.html #