Configured <httpErrors> in web.config.

Added custom error pages for 401, 404, and 500 HTTP status codes that
use the corresponding views from the ErrorController.