Name
Status —
Response.Status(
strStatusDescSetting
)
Synopsis
Specifies the HTTP status line that is returned to the client machine from the web server.
Parameters
-
strStatusDescSetting The
strStatusDescSettingis a string value containing a three-digit status code that indicates the status of the HTTP request and a short explanation of the status code.The possible values of the
strStatusDescSettingparameter are described in the current HTTP specification[1] and fall into the following high-level categories:-
1xx The 100 range is set aside for sending information-only response statuses to the client.
-
2xx The 200 range is set aside for sending successful response statuses to the client.
-
3xx The 300 range is set aside for redirection of the client. This status range should be used for requested pages that have been moved temporarily or permanently.
-
4xx The 400 range is set aside for sending notices of client error to the client. For example, you have undoubtedly seen the
404NotFounderror status sent back to your browser when you attempt to navigate to a page that has been moved or that does not exist.- 5xx
The 500 range is set aside for sending notices of server error to the client. For example, attempts to reach pages on a server that is unable to handle the request due to temporary overloading or server maintenance could result in the response status
503 Service Not Available.
-
Example
<% ' The following code sets the Status property of the ' Response object to 404 Not Found. Unless ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access