We know website speed and bandwidth very much importance for any site. But sometimes we see due to load of traffic some website going to down and getting 503 error. And frequently if your site getting this error, visitors may go away from your site and do not comeback.
So, we can overcome from this issue by several ways and you can redirect to your visitors by custom error document pages. If visitors will get 503 error, You can define the service will redirect to visitors to custom error document pages:
Process are below for different server:
> Add this code in .htaccess file on apache server
> Add this code in web.config on IIS 7 server
> Add this code in WEB-INF/web.xml file on Tomcat 7 server