Classic asp response code

asp-classicvbscript

We currently have a classic asp 404 error page. By default, it's returning a status code 200 error, and we want it to return a 404 error code. How do you set the status code for a page in classic asp (vbscript)?

Best Answer

Use the Response object:

Response.Status = "404 Not found"