/** * Returns a HTTP status header description. * * @param int $code HTTP status code. * @return string Status description string, or empty string if invalid. */ public function statusCodeDescription($code) { return StatusDescription::get(intval($code), ''); }
/** * Returns a HTTP status header description. * * @param int $code HTTP status code. * @return string Status description string, or empty string if invalid. */ function http_response_code_desc($code) { return \HttpUtil\StatusDescription::get(intval($code), ''); }