Skip to content

Commit

Permalink
fix: MWTELE-71 report HTTP 403 as unsupported type of payload
Browse files Browse the repository at this point in the history
  • Loading branch information
jponge committed May 11, 2023
1 parent 25ecef9 commit 3ee891e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum InsightsErrorCode {
ERROR_CLIENT_FAILED(19),
ERROR_CLIENT_BACKOFF_RETRIES_FAILED(20),
ERROR_INTERRUPTED_THREAD(21),
;
ERROR_HTTP_SEND_UNSUPPORTED_PAYLOAD(22);

private static final String PREFIX = "I4ASR";
private final int code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ protected void sendInsightsReportWithClient(
case 401:
throw new InsightsException(
ERROR_HTTP_SEND_AUTH_ERROR, "Authentication missing from request");
case 403:
throw new InsightsException(
ERROR_HTTP_SEND_UNSUPPORTED_PAYLOAD, "Unsupported type of payload");
case 413:
throw new InsightsException(ERROR_HTTP_SEND_PAYLOAD, "Payload too large");
case 415:
Expand Down

0 comments on commit 3ee891e

Please sign in to comment.