Provide JSON reps for default error message handler (fixes #478)