Function tide_disco::healthcheck

source ·
pub async fn healthcheck(
    req: Request<AppServerState>,
) -> Result<Response, Error>
Expand description

Return a JSON expression with status 200 indicating the server is up and running. The JSON expression is normally {“status”: “Available”} When the server is running but unable to process requests normally, a response with status 503 and payload {“status”: “unavailable”} should be added.