From 58136008d4104e1fa8d2f31b522a13e191c1cb3e Mon Sep 17 00:00:00 2001 From: MFransen69 <39826971+MFransen69@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:33:39 +0200 Subject: [PATCH] [PluginServer] Add jsonrpc over http error code legacy option (#1754) --- Source/Thunder/PluginServer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Thunder/PluginServer.h b/Source/Thunder/PluginServer.h index 84a87fb42..769fcb036 100644 --- a/Source/Thunder/PluginServer.h +++ b/Source/Thunder/PluginServer.h @@ -3726,6 +3726,9 @@ namespace PluginHost { response->Message = _T("JSONRPC executed succesfully"); } else { +#ifdef LEGACY_JSONRPCOVERHTTP_ERRORCODE + response->ErrorCode = Web::STATUS_ACCEPTED; +#endif response->Message = _T("Failure on JSONRPC: ") + Core::NumberType(body->Error.Code).Text(); } }