CORE-6032: switched all endpoints that may require Agave authorization redirects to the common error trapping code