improved error reporting for endpoint failures