4

Google recommends returning a 503 HTTP response when a site is temporarily unavailable.

I have a few plain HTML Sites. How do I return 503 status in plain HTML sites?

I'm on a Linux box with Apache.

Sathish Manohar
  • 5,859
  • 10
  • 37
  • 47
  • 2
    Check this answer on ServerFault: http://serverfault.com/questions/53061/how-can-i-return-a-503-status-in-apache-without-invoking-external-scripts – Jonathan Jan 17 '12 at 14:06

1 Answers1

4

You have to set the status code on the sever and not in your HTML files.

Sato
  • 433
  • 4
  • 13
  • Exactly. If the server is able to send HTML files to the user, it is not temporarily unavailable by definition! – Mr Lister Jan 17 '12 at 14:12