ENH: add a more informative error message for non-http errors.