Correct way to raise a 404 exception in a Module

Topics: Writing modules
Feb 26, 2013 at 4:49 PM
How can I raise a 404 exception in an Orchard module. Currently I am doing the following:
throw new HttpException(404, "File not found.");
This is resulting in the following:
HTTP500 Internal Server Error.
Coordinator
Feb 26, 2013 at 4:53 PM
return HttpNotFound() from a controller.
Feb 26, 2013 at 4:56 PM
Wow super quick response, thanks so much!