Sun Java System Web Server 6.1 SP11 Administrator's Configuration File Reference


Applicable in all stage directives. The set-variable SAF sets the HTTP status code and aborts the request by returning REQ_ABORTED. To set the HTTP status code without aborting the request, use the error parameter in conjunction with the noaction parameter.

To rewrite a HTTP status code, use a <Client> tag to match the original status code and an Output directive to set the new status code. The following example would rewrite all 302 Moved Temporarily responses to 301 Moved Permanently responses


<Client code="302">
Output fn="set-variable" error="301 Moved Permanently" noaction="true"