adds correct exception to unauthorized access