Twitter does this, and I’ve implemented it too, we just modify vcl_error as follows:
sub vcl_error {
set obj.http.Location = “http://oops.scaleengine.com/”;
set obj.status = 302;
return(deliver);
}
Take out the 503 guru meditation stuff and simply set a redirect to another, friendly domain.
This does not fix “cannot reach the backend” configuration errors, and does not fix poorly configured backends, but if your backends are underpowered and overwhelmed by a traffic spike, you can at least send people to a nice fail page.