How to Return Specific HTTP Status Code in a Plain

2019-07-04 17:56发布

问题:

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.

回答1:

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



标签: html apache http