Record number of notifications sent
Fix incorrect error responses