Function __global->set_http_status_code

Definitions

sources/global3.php

  • Set the HTTP status code for the request.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$code integer No No required parameter N/A N/A The HTTP status code

Preview

Code (PHP)

/**
 * Set the HTTP status code for the request.
 *
 * @param  integer $code The HTTP status code
 */

function set_http_status_code(int $code)