I have a static HTML web page and I want to set its status code to 404 \"Not found\".
404
But, I want to do this using javascript or jQuery, not any server
You can redirect the page to a non existent one in JavaScript. I have no idea why you would want to do this, but hey ho:
But David is right, there is no way to set THAT pages status as it is a client side script.