In my ASP.NET MVC, the application controller processes the request and returns a specific view with a status of 200 . When it reaches Application_EndRequest , it is already 204 . The content of the response of my view is correct and is in the response, so only the status code changes. Here is an example (status 204, but there is content):
HTTP/1.1 204 No Content Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Expires: -1 Vary: User-Agent Access-Control-Allow-Origin: * Date: Fri, 24 Nov 2017 22:12:17 GMT
It could be an ActionFilter response code change, but I could not find a specific filter that does this.
What can change the status code of my response and how can I debug all filters working on this request?
source share