We currently have a classic asp 404 error page. By default, it returns a 200 status code error, and we want it to return a 404 error code. How to set the status code for a page in classic asp (vbscript)?
Use Response Object:
Response.Status = "404 Not found"
Technically, 200 is an OK status code, not an error, but, nevertheless, the main idea is that you need to tell the Response thread to return 404 (not found) for the status code. Here is one way to do this.
OK
Source: https://habr.com/ru/post/886736/More articles:how to deploy .mdf file - sql-serverHow to convert sample data from R package “weave” to shape file - javaiOS - QuickLook - How to open an object in QuickLook without UIScrollView - iosHow can I stream videos from a torrent using HTML 5? - html5Disconnecting silence from recorded audio AVAudioRecorder - iosreading a file with the correct encoding - phpConvert special characters using htmlspecialchars and htmlentities - phpChoosing XML Nodes Using TSQL - xmlErrors in Eclipse for no reason - javaSencha toggle touch button - event-handlingAll Articles