check mongo responses for errors