Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ protected void checkForFailureStatusCode(Request request, HttpResult result) thr
throw new RetryException(false, buildError(METHOD_NOT_ALLOWED, request, result));
} else if (statusCode == 413) {
throw new ContentTooLargeException(buildError(CONTENT_TOO_LARGE, request, result));
} else if (statusCode == 429) {
throw new RetryException(true, buildError(RATE_LIMIT, request, result));
}

throw new RetryException(false, buildError(UNSUCCESSFUL, request, result));
Expand Down