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

added by Paul Wheeler
10/6/2014 1:11:24 PM


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 into meaningful information for use be the client.