/** * Fetches the message associated with a Response Code * * @param string $code * @return string */ public function getMessage($code) { return ResponseCode::getMessage($code); }
/** * Sends the HTTP response to the client. * Causes output! */ public function send() { $this->sendHeaders(); $this->sendCookies(); if (ResponseCode::canHaveBody($this->statusCode)) { $this->sendBody(); } }