if (err && !angular.isUndefined(err.status)) {
                errorDetails.status = err.status;
                if (!ngIHConfig.customErrorHandler) {
                  // A lot of errors occur in relation to HTTP calls... translate these into user-friendly msgs.
                  errorDetails.error.message = ngIHConfig.httpErrors[err.status0];