20 if ($status_code < 100 || $status_code > 599) {
setStatusCode(int $status_code)
{Sets response HTTP status code.Status code self }
setForwardURL(string $forward_url=REFERRER)
{Sets redirect URL.Forward URL self }
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
setContent($content= '')
{Sets response body.Content of the response as a scalar value or an array self }
const ELGG_HTTP_BAD_REQUEST
const ELGG_HTTP_INTERNAL_SERVER_ERROR
__construct($error= '', int $status_code=ELGG_HTTP_BAD_REQUEST, string $forward_url=REFERRER)
Constructor.