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)}
About this article
Last change 2019-03-07
Topics