Add a totalBehavior="404NotFound" option to the sizelimits configuration
Allow a totalBehavior="404NotFound" setting to the sizelimits config. This would allow the server to simply issue a 404 instead of generating an exception. Returning this 404 would be more efficient on the server side than throwing an exception.
4
votes
![](https://secure.gravatar.com/avatar/2a3f3604f1befdc5af53dbf07aceaf04?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
This behavior would not make sense or offer any performance improvement.
-
Actually, 404s are generally caused by exceptions, and in this instance, an exception would be the only exit path.
Other than saving 1/20th of a millisecond, would there be another benefit to this behavior?
http://stackoverflow.com/questions/161942/how-slow-are-net-exceptions