Error handling investigations
Fine-tune error handling.

The convention should be to reject promises with an error value, but
JQuery does not respect this convention.  In DataLayer.js, we
transform the XHR object into an Error with a message containing the
status text.