Heartbeat feature and 404 middleware are implemented