What is the correct HTTP status code to send when a site is down for maintenance?

前端 未结 4 1082
醉酒成梦
醉酒成梦 2021-01-30 08:01

Is there a HTTP status code to tell Google (and others) to go away, index me again later?

Basically, one that semantically tells clients that the site is down f

4条回答
  •  太阳男子
    2021-01-30 08:40

    I'd consider the 503 to be most appropriate, since the 5xx-group is meant for server errors in general.

提交回复
热议问题