20

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

CD..
  • 72,281
  • 25
  • 154
  • 163
C. Ross
  • 31,137
  • 42
  • 147
  • 238

1 Answers1

34
 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

Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206
CD..
  • 72,281
  • 25
  • 154
  • 163