Click here to Skip to main content
15,881,789 members
Articles / Web Development / ASP.NET

ASP.NET Web Api: Unwrapping HTTP Error Results and Model State Dictionaries Client-Side

Rate me:
Please Sign up or sign in to vote.
5.00/5 (17 votes)
3 Oct 2014CPOL14 min read 106.9K   21  
When working with ASP.NET Web Api from a .NET client, one of the more confounding things can be handling the case where errors are returned from the Api. Specifically, unwrapping the various types of errors which may be returned from a specific API action method, and translating the error content in

Views

Daily Counts

License

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


Written By
Software Developer XIV Solutions
United States United States
My name is John Atten, and my username on many of my online accounts is xivSolutions. I am Fascinated by all things technology and software development. I work mostly with C#, Javascript/Node.js, Various flavors of databases, and anything else I find interesting. I am always looking for new information, and value your feedback (especially where I got something wrong!)

Comments and Discussions