setHTTPResponseCode($code) ->setContent( array( 'message' => $message, )); } public function setContent(array $content) { $this->content = phutil_json_encode($content); return $this; } public function buildResponseString() { return $this->content; } public function getHeaders() { $headers = array( array('Content-Type', 'application/vnd.git-lfs+json'), ); return array_merge(parent::getHeaders(), $headers); } }