You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Retry codes (`gid.connector.http.sink.retry-codes`): Transient errors that trigger automatic retries when using `at-least-once` delivery guarantee. `500, 503, 504` are defaults
460
+
- Ignored responses (`gid.connector.http.sink.ignored-response-codes`): Responses whose content is ignored but treated as successful.
461
+
- Error codes: Any response code not classified in the above groups.
462
+
463
+
Parameters support whitelisting and blacklisting: `2XX,404,!203` means all codes from 200-299, plus 404, except 203.
464
+
465
+
#### Legacy error code configuration
466
+
For backward compatibility, you can use the legacy properties:
467
+
-`gid.connector.http.sink.error.code` - HTTP status codes treated as errors (supports masks like `3XX, 4XX, 5XX`).
468
+
-`gid.connector.http.sink.error.code.exclude` - HTTP codes to exclude from the error list.
456
469
457
-
This behavior can be changed by using below properties in table definition (DDL) or passing it via `setProperty' method from Sink's builder. The property name are:
458
-
-`gid.connector.http.sink.error.code` used to defined HTTP status code value that should be treated as error for example 404.
459
-
Many status codes can be defined in one value, where each code should be separated with comma, for example:
460
-
`401, 402, 403`. User can use this property also to define a type code mask. In that case, all codes from given HTTP response type will be treated as errors.
461
-
An example of such a mask would be `3XX, 4XX, 5XX`. In this case, all 300s, 400s and 500s status codes will be treated as errors.
462
-
-`gid.connector.http.sink.error.code.exclude` used to exclude a HTTP code from error list.
463
-
Many status codes can be defined in one value, where each code should be separated with comma, for example:
464
-
`401, 402, 403`. In this example, codes 401, 402 and 403 would not be interpreted as error codes.
465
470
466
471
### Source table
467
472
The source table categorizes HTTP responses into three groups based on status codes:
@@ -619,6 +624,9 @@ be requested if the current time is later than the cached token expiry time minu
619
624
| gid.connector.http.sink.request-callback | optional | Specify which `HttpPostRequestCallback` implementation to use. By default, it is set to `slf4j-logger` corresponding to `Slf4jHttpPostRequestCallback`. |
620
625
| gid.connector.http.sink.error.code | optional | List of HTTP status codes that should be treated as errors by HTTP Sink, separated with comma. |
621
626
| gid.connector.http.sink.error.code.exclude | optional | List of HTTP status codes that should be excluded from the `gid.connector.http.sink.error.code` list, separated with comma. |
627
+
| gid.connector.http.sink.success-codes | optional | Comma separated http codes considered as success response. Use [1-5]XX for groups and '!' character for excluding. |
628
+
| gid.connector.http.sink.retry-codes | optional | Comma separated http codes considered as transient errors that will trigger retries. Use [1-5]XX for groups and '!' character for excluding. Only used when `sink.delivery-guarantee` is set to `at-least-once`. |
629
+
| gid.connector.http.sink.ignored-response-codes | optional | Comma separated http codes. Content for these responses will be ignored. Use [1-5]XX for groups and '!' character for excluding. |
622
630
| gid.connector.http.security.cert.server | optional | Path to trusted HTTP server certificate that should be add to connectors key store. More than one path can be specified using `,` as path delimiter. |
623
631
| gid.connector.http.security.cert.client | optional | Path to trusted certificate that should be used by connector's HTTP client for mTLS communication. |
624
632
| gid.connector.http.security.key.client | optional | Path to trusted private key that should be used by connector's HTTP client for mTLS communication. |
0 commit comments