title: How can I display a message to the end user instead of the 404 page "error handling"
body: <p>I don't want to display the 404 message to the user, I want the message to be displayed in the normal page instead.</p>
  
  <pre><code> public ActionResult Download(string fileName, string filePath){
      try{
          filePath = (filePath != null &amp;&amp; filePath != "") ? Cryptography.DecryptAESFromBase64(filePath) : filePath;
          if (!filePath.Contains(fileName))
          {
              var fs = System.IO.File.OpenRead(Server.MapPath(filePath + "_" + fileName));
              return File(fs, "application/octet-stream", fileName);
          }
          else
          {
              byte[] data;
              this._documentService.DownloadAmazonObject(filePath, out data);
  
              return File(data, "application/octet-stream", fileName);
          }
      }
  
      catch{
  
          throw new HttpException("Couldn't find ", ex);
      }          
  }
  </code></pre>
  
  <p>This is the code that I have, I keep having the <code>throw new HttpException</code> display in the yellow page.</p>