Response.StatusCode = 503; HttpContext.Current.Response.StatusDescription = "Service Temporarily Unavailable";The problem was that my nice-looking content never got displayed. Instead, the user was presented with an ugly "The service is unavailable." page. To overcome this is a one-liner:
Response.TrySkipIisCustomErrors = true;