Skip to content

Commit 128c062

Browse files
committed
PR comments
1 parent 375a464 commit 128c062

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/AppSecRequestContext.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ public int getRaspTimeouts() {
232232

233233
public int getRaspError(int code) {
234234
switch (code) {
235-
case -3:
235+
case DD_WAF_RUN_INTERNAL_ERROR:
236236
return raspInternalErrors;
237-
case -2:
237+
case DD_WAF_RUN_INVALID_OBJECT_ERROR:
238238
return raspInvalidObjectErrors;
239-
case -1:
239+
case DD_WAF_RUN_INVALID_ARGUMENT_ERROR:
240240
return raspInvalidArgumentErrors;
241241
default:
242242
return 0;

0 commit comments

Comments
 (0)