RESTWS-438: Change so that a 404 message is returned if user is not authenticated (instead of current 401)