Default error pages are easily set in web.config for MVC Controllers using something like: .
However, instead of returning results from a web api controller when an error occurs, I'd like to display a generic error page. Setting "customErrors" doesn't work the same as it does for the MVC controller.
Any ideas how this could be easily implemented?
Aucun commentaire:
Enregistrer un commentaire