Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

classic asp response code

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)?

like image 871
gleasonomicon Avatar asked Apr 26 '11 20:04

gleasonomicon


People also ask

Is ASP classic still used?

It used scripting on the server to create content that would then be sent to a client's web browser, and it enjoyed a tremendous amount of success in its time as a result. Classic ASP, however, is no longer being developed by Microsoft at all - it has long since been replaced by ASP.NET in 2002, a newer alternative.

What is meant by classic asp?

Classic ASP is a server-side scripting environment that you can use to create and run dynamic web applications.

What is ASP NET response?

The ASP response object enables communication between the server and the client. It sends messages from the server as an output to the client. This object has several collections, methods, and properties associated with it.


1 Answers

Use the Response object:

Response.Status = "404 Not found"
like image 117
driis Avatar answered Sep 19 '22 00:09

driis