Service Unavailable Page

363 Views Asked by At

Is it possible to display a static HTML page when a web service becomes unavailable because of uncertain reasons. For e.g., an outage caused due to power failure in its data center?

If so, can I know how to do it and where from that page will be served?

Also can we classify such an unavailability under Error 503?

Thanks

2

There are 2 best solutions below

4
On

Yes, that's classic 503. You can certainly do it, but there has to be a server of some kind to serve the page. That can be a load balancer/reverse proxy, which is a common way real sites handle such issues (along with general load issues).

You can also switch the DNS to another data center, but that takes time to propagate.

0
On

yes because
Error 503: Service Unavailable means; the server took too long to answer and the connection timed out.