Endpoint.js fix to avoid Infinite Loop for GetPublicFiles/Folders for Smartcloud

Endpoint.js Fix to handle 403 as a normal error in case endpoint is already authenticated in spite of 403 being configured to be treated as 401 for that endpoint.