How to return a 200 HTTP Status Code from ASP.NET MVC 3 controller

前端 未结 5 1472
刺人心
刺人心 2020-12-12 11:48

I am writing an application that is accepting POST data from a third party service.

When this data is POSTed I must return a 200 HTTP Status Code.

How can I

5条回答
  •  醉梦人生
    2020-12-12 12:27

    200 is just the normal HTTP header for a successful request. If that's all you need, just have the controller return new EmptyResult();

提交回复
热议问题