Quick Tip - Return HTTP Status Code from ASP.NET Core Methods #aspnetcore

added by DotNetKicks
2/7/2018 7:49:25 AM

1 Kicks, 726 Views

It is advisable to return the proper HTTP status code in response to a client request. This helps the client to understand the request's result and then take corrective measure to handle it. Proper use of the status codes will help to handle a request's response in an appropriate way.