When you design a API, Http Status Codes are important. It helps the API consumer to know what happens or what to do.
|POST||201, 400, 500|
|GET||200, 404, 400, 500|
|DELETE||204, 404, 400, 500|
|PUT||200, 404, 400, 500|
|PATCH||200, 404, 400, 500|
|General actions||401, 403, 405|
|405||Method not found|
|500||Internal server error|
The following two tabs change content below.
Developer at Tata Consultancy Services
Tom Mohan is a technologist who loves to code and build. He enjoys working on Microsoft Technologies. Tom specializes in ASP.NET MVC, Web API , Azure, C# ,WPF, SQL etc and holds a Bachelor engineering degree in Computer Science. Certification : MCSD , MCTS
Latest posts by Tom Mohan (see all)
- Deep dive into ASP.NET Core Middleware - July 26, 2017
- How to choose a WCF binding ? - January 29, 2017
- Get free Azure trial worth ₹50,000 and Azure webinar series . - September 3, 2016