Custom error page when server down


Does a solution exist to allow a custom error page in the event that a server or domain is unavailable? I suspect the set-up would involve a super-crash-free “gateway” server (Google?) that can serve to direct traffic to an alternate site when the primary site goes down.