Obsługa błędów w interfejsie API sieci Web ASP.NET

Jak obsługiwać wyjątki w internetowym interfejsie API ASP.NET.