Can I change the page's HTML status code on the client side?

后端 未结 5 1872
刺人心
刺人心 2021-01-18 00:24

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

5条回答
  •  灰色年华
    2021-01-18 00:54

    It is impossible to set the HTTP Response code using client side programming.

提交回复
热议问题