This seems to work but I wonder if the error is further up in the handleError method having an exception!
Checking for an empty string seems like it could catch the wrong error. I have a fix for this on this commit which works to return 404 if "Not Found" isn't available in the statusText.
@jonespm I have tested your changes, and it is working as expected. I think yours is a better approach with both statusText and statusCode handlings. Please go ahead and merge your changes instead
This seems to work but I wonder if the error is further up in the handleError method having an exception!
Checking for an empty string seems like it could catch the wrong error. I have a fix for this on this commit which works to return 404 if "Not Found" isn't available in the statusText.
https://github.com/tl-its-umich-edu/my-learning-analytics/commit/61a2f9990f84df279ee83d86730691851fad0be1