+ Start a Discussion
AtnMAtnM 

File Not Found

Is there a way to throw a File Not Found exception in Apex that will cause the File Not Found page to be shown in a site context, or is the only way to redirect to the file not found page if I detect missing content?
BulentBulent
There is no way to trow the 404 error programatically. You can return the page that you use for 404 error, but I think the page won't display the information about what page is not found.
mworld2mworld2

Can you point me to where I can read up on trapping 404 errors? In a client server environment I would simply configure the web server to display a custom 404 page that I had created, but with SF I have no idea how to do this.

 

BulentBulent

navigate to site details page there is a error pages related list and one of them is the 404 error page that you can customize or replace it with your won visualforce page/