Equinox Online Help - Language Reference - A to Z

Home

WebSetResponse

Applies to
SyntaxWebSetResponse code [,reason]
Action[Statement] Changes the HTTP response code sent to the web server client
ScopeUsable 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.

CategoryWeb Server
See Also WebGetHeader, WebOutput, WebParameter, WebRedirect, WebSetCookie, WebSetHeader
Example

This example sends an application specific error

WebSetResponse 704, "Data not found"