public function handleError(HTTPInputRequest $request, HTTPOutputResponse $response, \Throwable $e) : void
    {
        if ($e instanceof HTTPError) {
            $e->generateErrorResponse();
        }
        #$error = (new HTTPServerError([], $e->getMessage()))->generateErrorResponse();
        throw $e;
    }