Wednesday, February 24, 2016

Mapping RESTful Design Http Status Codes in ASP.NET Web API

I was recently presented with a RESTful design document complete with Http Status Codes, but having worked with ASP.NET Web API exclusively for my RESTful services, I could not readily match the direct Http Status Code numbers to their .NET equivalents in ASP.NET Web API!

Well, fortunately, Microsoft has provided a handy article which provides just that information!

HttpStatusCode Enumeration

Using this table as a guide, I could then easily map the Http Status Code numbers back to their .NET equivalents in ASP.NET Web API!

No comments:

Post a Comment