HTTP Status Code for database is down

前端 未结 3 805
难免孤独
难免孤独 2020-12-16 09:01

I have a page on my web site that reports on the health of the site and sets an HTTP 200 status code is everything is okay. This page is used by an external monitoring progr

3条回答
  •  囚心锁ツ
    2020-12-16 09:40

    I would suspect that a 500 or 503 would be appropriate. 503 is generally used for overloaded or maintenance conditions, but I don't think it would be unreasonable to use it for your situation.

提交回复
热议问题