Should probably be `serializeErrorMessages()`