response = $response; } /** * @return Response */ public function index() { return $this->response ->setStatusCode(501) ->withHeader('content-type', 'application/json') ->withContent(json_encode(['error' => 'Not implemented'])); } }