throw 401 in case of failed variable substition for .well-known url