We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9fd145 + ca8aefc commit 3382a41Copy full SHA for 3382a41
servc/svc/com/worker/__init__.py
@@ -140,7 +140,7 @@ def run_resolver(
140
and statuscode.value >= 400
141
and statuscode.value < 500
142
):
143
- print("Exiting due to 5xx error", error, flush=True)
+ print("Exiting due to 4xx error", error, flush=True)
144
exit(1)
145
146
return statuscode, response
@@ -215,6 +215,9 @@ def inputProcessor(self, message: Any) -> StatusCode:
215
message["id"], "Method not found", StatusCode.METHOD_NOT_FOUND
216
),
217
)
218
+ if self._config.get(f"conf.{self.name}.exiton4xx"):
219
+ print("Exiting due to 4xx error:", "Method not found", flush=True)
220
+ exit(1)
221
return StatusCode.METHOD_NOT_FOUND
222
223
continueExecution = evaluate_pre_hooks(
0 commit comments