You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

set_response_code()

Usage

set_response_code(value)

Description
Sets the response code of the current rendering run. Very useful in conjunction with set_response_header() for redirects.

Note
This works only for page rendering - it does not work in schema methods.

Example

${set_response_code(302)}

Search results for "set_response_code()"

set_response_code()

Sets the response code of the current rendering run. Very useful in conjunction with set_response_header() for redirects.

set_response_code(value)