title: AWS load balancer and maintenance page
body: <p>I'm using AWS Load Balancer with 3 EC2 servers, and I'm trying to serve a Maintenance page when site is under maintenance. </p>
  
  <p>This page need to return 503 HTTP code, because it is a proper code for a maintenance mode and will prevent possible problems with SEO.</p>
  
  <p>When I return 503 code from any of my servers, Load Balancer makes it "Not In Service", and when all servers return 503, website returns a blank page (because all servers are disconnected).</p>
  
  <p>My questions are:</p>
  
  <p>1) Is there any way to serve a custom static page with a message for visitors from Load balancer if there is no healthy servers? </p>
  
  <p>2) Or how to configure Load Balancer's Health Check that it will not consider 503 as a reason to mark server as "unhealthy"?</p>
  
  <p>Thanks!</p>