Elgg\Http\ErrorResponse::__construct PHP Method

__construct() public method

Constructor
See also: elgg_error_response
public __construct ( string $error = '', integer $status_code = ELGG_HTTP_OK, string $forward_url = REFERRER )
$error string Error message
$status_code integer HTTP status code
$forward_url string Forward url
    public function __construct($error = '', $status_code = ELGG_HTTP_OK, $forward_url = REFERRER)
    {
        parent::__construct($error, $status_code, $forward_url);
    }
ErrorResponse