How to test /srv/status


I’m implementing a health check monitoring system for my forum and would like to know how to test the /srv/status endpoint.

I know it returns OK when the forum is fine, but how can I safely make it return the opposite (I assume it’s NOK or something like that) for test purposes of my monitoring system?


I think is better if you check the status code of this endpoint, I believe it returns 200 when everything is good and other status when is not. Try to run the server with pending database migrations (you know, pending to run rails db:migrate) and check what status code the /srv/status endpoint returns