3 final class DiffusionGitLFSResponse
extends AphrontResponse
{
7 public static function newErrorResponse($code, $message) {
9 // We can optionally include "request_id" and "documentation_url" in
13 ->setHTTPResponseCode($code)
16 'message' => $message,
20 public function setContent(array $content) {
21 $this->content
= phutil_json_encode($content);
25 public function buildResponseString() {
26 return $this->content
;
29 public function getHeaders() {
31 array('Content-Type', 'application/vnd.git-lfs+json'),
34 return array_merge(parent
::getHeaders(), $headers);