isstatus Element

Syntax

<isstatus
 value = http_code \\required
/>
value = http_code

Allowed data type: string or expression.

http_code identifies the HTTP response code. This must be an integer.

Purpose

This tag is used to set the HTTP response status code.

Example

The following sets the response status code to 307, which indicates that the requested resource resides temporarily under a different URI.

<isstatus value="307"/>

The following sets the response status code to 410, one of the few error codes for which pages are cached in the Salesforce B2C Commerce Web Server.

<isstatus value="410"/>
Note: Explicitly supported REDIRECT and GONE are also cached. This means that responses with the response status code 301 (indicating that the resource has permanently moved to a new location), 302 (indicating that the resource has temporarily moved to another location) and 410 (indicating that the resource is no longer available at the server and no forwarding address is known) are also cached by the WebAdapter.