You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have need to return 404 on requests and return content, but the RequestHandler will replace the returned content even when Response.TrySkipIisCustomErrors = true;
I found a workaround of setting HttpContext.Items["404handler:handled"] = true; but I would like a supported method to prevent the response from being altered.
Thanks!
The text was updated successfully, but these errors were encountered:
Is the URL that returns 404 added to the redirects list?
The RequestHandler does not replace any content, it just redirects if it finds a URL in the redirect list, otherwise, IIS will handle the 404 status code.
I have need to return 404 on requests and return content, but the RequestHandler will replace the returned content even when Response.TrySkipIisCustomErrors = true;
I found a workaround of setting HttpContext.Items["404handler:handled"] = true; but I would like a supported method to prevent the response from being altered.
Thanks!
The text was updated successfully, but these errors were encountered: