I have a static HTML web page and I want to set its status code to 404
\"Not found\".
But, I want to do this using javascript or jQuery, not any server
I think the sense behind this exercise is the following: You want to load a page that displays a custom error message to your users. At the same time you want to tell your Google Search Appliance (or alike systems) that the requested page must be deleted from the index. I have the same problem where server-side scripts cannot be embedded. I haven't found a client-side solution yet.