Search SSWUG.ORG:



DATABASES

Exception Handling in ASP.NET Web API - Part 2 This is an off-site link.  Please review our Terms of Service for additional information.




In order to return HTTP Response with a specific error status code, normally HttpResponseException type is used. In part-1 of this article, we checked a specific condition and return error status code accordingly. What exactly we did? We checked if student object returned from a data source is null, then throw HttpResponseException with HTTP status code i.e. 404 (Not Found).

Read this article...







comments powered by Disqus