Add check for resp object.  Fixes kanso/db#14

Adds also the contents of statusText to the returned error object.

This is an essential update to ensure that aborts of the xhr task are properly handled.