protected function getBody(Throwable $exception): string
	{
		if($this->returnAsJson())
		{
			$this->response->setType('application/json');

			return $this->getExceptionAsJson($exception);
		}

		if($this->returnAsXml())
		{
			$this->response->setType('application/xml');

			return $this->getExceptionAsXml($exception);
		}

		$this->response->setType('text/html');

		return $this->getExceptionAsRenderedView($exception);
	}