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 side language.
How can I do this on the client? With javascript or maybe a <meta> tag?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is impossible to set the HTTP Response code using client side programming.