wrapper for errors on superagent json requests

for #207