protected function getStatusCodeAndMessage(Throwable $exception): array
	{
		if($exception instanceof HttpException)
		{
			$message = $exception->getMessage();
		}

		if(empty($message))
		{
			$message = 'An error has occurred while processing your request.';
		}

		return ['code' => $this->getStatusCode($exception), 'message' => $message];
	}