Asp Classic return specific http status code

后端 未结 1 690
独厮守ぢ
独厮守ぢ 2021-01-07 20:44

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

1条回答
  •  走了就别回头了
    2021-01-07 21:10

     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

    0 讨论(0)
提交回复
热议问题