Add response messages to string service
This commit is contained in:
1 parent
00fc7b8038
commit
4039517683
2 files changed
+5
-3
No files matched your search
@@ -149,10 +149,12 @@
|
|||||||
"statusPageByTeamId": "Got status pages by team id successfully",
|
"statusPageByTeamId": "Got status pages by team id successfully",
|
||||||
"httpNetworkError": "Network error",
|
"httpNetworkError": "Network error",
|
||||||
"httpNotJson": "Response data is not json",
|
"httpNotJson": "Response data is not json",
|
||||||
|
"httpExpectedValueFail": "Expected value did not match",
|
||||||
"httpJsonPathError": "Failed to parse json data",
|
"httpJsonPathError": "Failed to parse json data",
|
||||||
"httpEmptyResult": "Result is empty",
|
"httpEmptyResult": "Result is empty",
|
||||||
"httpMatchSuccess": "Response data match successfully",
|
"httpMatchSuccess": "Response data match successfully",
|
||||||
"httpMatchFail": "Failed to match response data",
|
"httpMatchFail": "Failed to match response data",
|
||||||
|
"httpJsonPathFail": "JSONPath did not match expected value",
|
||||||
"webhookSendSuccess": "Webhook notification sent successfully",
|
"webhookSendSuccess": "Webhook notification sent successfully",
|
||||||
"telegramRequiresBotTokenAndChatId": "Telegram notifications require both botToken and chatId",
|
"telegramRequiresBotTokenAndChatId": "Telegram notifications require both botToken and chatId",
|
||||||
"webhookUrlRequired": "Webhook URL is required",
|
"webhookUrlRequired": "Webhook URL is required",
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ class NetworkService {
|
|||||||
} else {
|
} else {
|
||||||
httpResponse.code = 500;
|
httpResponse.code = 500;
|
||||||
httpResponse.status = false;
|
httpResponse.status = false;
|
||||||
httpResponse.message = this.stringService.httpExpectedValueFail || "Expected value did not match";
|
httpResponse.message = this.stringService.httpExpectedValueFail;
|
||||||
return httpResponse;
|
return httpResponse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -192,7 +192,7 @@ class NetworkService {
|
|||||||
} else {
|
} else {
|
||||||
httpResponse.status = false;
|
httpResponse.status = false;
|
||||||
httpResponse.code = 500;
|
httpResponse.code = 500;
|
||||||
httpResponse.message = this.stringService.httpJsonPathFail || "JSONPath did not match expected value";
|
httpResponse.message = this.stringService.httpJsonPathFail;
|
||||||
httpResponse.extracted = extracted;
|
httpResponse.extracted = extracted;
|
||||||
return httpResponse;
|
return httpResponse;
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,7 @@ class NetworkService {
|
|||||||
} else {
|
} else {
|
||||||
httpResponse.status = false;
|
httpResponse.status = false;
|
||||||
httpResponse.code = 500;
|
httpResponse.code = 500;
|
||||||
httpResponse.message = this.stringService.httpJsonPathFail || "JSONPath result was false";
|
httpResponse.message = this.stringService.httpJsonPathFail;
|
||||||
httpResponse.extracted = extracted;
|
httpResponse.extracted = extracted;
|
||||||
return httpResponse;
|
return httpResponse;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user