Asp Classic return specific http status code

青春壹個敷衍的年華 提交于 2019-11-30 22:55:58

问题


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


回答1:


 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



来源:https://stackoverflow.com/questions/1456110/asp-classic-return-specific-http-status-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!