C#

HttpNotFound v HttpStatusCodeResult draft

I happen to come accross some code that was along the lines of

return new HttpStatusCodeResult(404);

This is much better written as 

return HttpNotFound();

In fact if you decompile the dll and see what is going on, you can see that HttpNotFound is it is doing that under the hood anyway. I just don't like seeing Http Status codes all over the place!

-- Lee