Click here to Skip to main content
11,481,916 members (65,143 online)
Click here to Skip to main content

Tagged as

Exception Handling in ASP.NET Web API - Part 2

, 6 Feb 2014 CPOL 7.6K 6
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,

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Imran Abdul Ghani
Software Developer (Senior) Emaratech
United Arab Emirates United Arab Emirates
Imran Abdul Ghani has more than 10 years of experience in designing/developing enterprise level applications. He is Microsoft Certified Solution Developer for .NET(MCSD.NET) since 2005. You can reach his blogging at WCF Tutorials, Web Development, SharePoint for Dummies.
Follow on   Twitter   Google+   LinkedIn

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 6 Feb 2014
Article Copyright 2014 by Imran Abdul Ghani
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid