Equinox Online Help - Language Reference - A to Z
WebSetResponse |
|
---|---|
Applies to | |
Syntax | WebSetResponse code [,reason] |
Action | [Statement] Changes the HTTP response code sent to the web server client |
Scope | Usable in ESP pages only. |
Notes | By default the web server sends an HTTP status code back to the requester along with the page or data requested, for example "200 OK" indicates the resource was returned successfully. This statement allows the esp page to change the response sent. Code contains the error number. Reason is the text explanation. |
Category | Web Server |
See Also | WebGetHeader, WebOutput, WebParameter, WebRedirect, WebSetCookie, WebSetHeader |
Example | This example sends an application specific error WebSetResponse 704, "Data not found" |