Parity with error message
Extract function for JSON serialisation
Use recommended liveness test for Mongo