serve(); } catch (\Exception $e) { $result = $server->returnError($e); } echo json_encode($result, JSON_THROW_ON_ERROR);