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?