2 namespace OCA\Grauphel\Lib\Response;
4 class ErrorResponse extends \OCP\AppFramework\Http\Response
8 public function __construct($error)
10 $this->setStatus(\OCP\AppFramework\Http::STATUS_BAD_REQUEST);
11 $this->addHeader('Content-Type', 'text/plain; charset=utf-8');
12 $this->error = $error;
15 public function render()
17 return $this->error . "\n";