Asp Classic return specific http status code

C. Ross picture C. Ross · Sep 21, 2009 · Viewed 18.8k times · Source

How can I return a specific http status code from an asp classic?

Answer

CD.. picture CD.. · Sep 21, 2009
 Response.Status = "404 File Not Found"

A string which specifies the value of status line of the server. It is included in HTTP headers of the response. This string should contain both three digit code and a brief explanation for it e.g. "404 File Not Found".

The ASP Response Object