surfacing 401 errors