From 596c1de5cb46a57c83d9e0d3d064d48c68b65168 Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Sun, 12 Dec 2021 20:37:19 +0000 Subject: [PATCH] fix(request-client): return Internal Server Error code in case of Stored Process Error --- src/request/RequestClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request/RequestClient.ts b/src/request/RequestClient.ts index f7caedba..45e55b7a 100644 --- a/src/request/RequestClient.ts +++ b/src/request/RequestClient.ts @@ -627,7 +627,7 @@ const parseError = (data: string) => { if (parts.length > 1) { const log = parts[1].split('
')[1].split('
')[0] const message = `This request completed with errors.` - return new JobExecutionError(404, message, log) + return new JobExecutionError(500, message, log) } } } catch (_) {}