LawPavilion interview question

How do you handle errors globally in an ASP.NET Core API?