Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Preventing IIS from responding with error pages as HTTP response content (HTML or otherwise)

$
0
0

I want to prevent IIS (v7.5) from responding with custom (or built-in) error pages in the HTTP response body when an HTTP error occurs, but i can't figure out how to turn this off completely, for a specific site or even at the server level. I removed all the entries in the "Error Pages" section of IIS manager, but i still get html content when, for instance, a 404 error occurs.

I want it instead to return the minimum relevant information, i.e. the HTTP status code, other relevant headers and anempty body, regardless of the error type. Is there a method to achieve this?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>