Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: error checking condition !=200 is moved to >=400

Palash guptaa34dbc494224
diff --git a/frontend/src/container/ListAlertRules/index.tsx b/frontend/src/container/ListAlertRules/index.tsx
index 9d1f502355..2b81729e7e 100644
--- a/frontend/src/container/ListAlertRules/index.tsx
+++ b/frontend/src/container/ListAlertRules/index.tsx
@@ -15,7 +15,7 @@ function ListAlertRules(): JSX.Element {
});
useEffect(() => {
- if (status === 'error' || (status === 'success' && data.statusCode !== 200)) {
+ if (status === 'error' || (status === 'success' && data.statusCode >= 400)) {
notification.error({
message: data?.error || t('something_went_wrong'),
});
@@ -28,7 +28,7 @@ function ListAlertRules(): JSX.Element {
}
// api is successful but error is present
- if (status === 'success' && data.statusCode !== 200) {
+ if (status === 'success' && data.statusCode >= 400) {
return (
<ListAlert
{...{