Assertions added to ensure that there is an error name and message sent as JSON (but I don't verify the text).