Fix missing code 401 for PMs