code = $code; $message = head(phutil_split_lines($message)); $this->message = $message; } public function getMessage() { return $this->message; } public function buildResponseString() { return $this->code.' '.$this->message; } public function getHeaders() { $headers = array(); if ($this->getHTTPResponseCode() == 401) { $headers[] = array( 'WWW-Authenticate', 'Basic realm="Phabricator Repositories"', ); } return $headers; } public function getCacheHeaders() { return array(); } public function getHTTPResponseCode() { return $this->code; } public function getHTTPResponseMessage() { return $this->message; } }