Skip to content

Commit c265150

Browse files
authored
Merge pull request #79814 from mbarqawi/patch-1
adding "Retry-After"
2 parents 483634a + eaf1eff commit c265150

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

articles/connectors/connectors-native-http.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,22 @@ HTTP requests have a [timeout limit](../logic-apps/logic-apps-limits-and-config.
302302

303303
<a name="disable-location-header-check"></a>
304304

305+
### Set up interval between retry attempts with the Retry-After header
306+
307+
To specify the number of seconds between retry attempts, you can add the `Retry-After` header to the HTTP action response. For example, if the target endpoint returns the `429 - Too many requests` status code, you can specify a longer interval between retries. The `Retry-After` header also works with the `202 - Accepted` status code.
308+
309+
Here is the same example that shows the HTTP action response that contains `Retry-After`:
310+
311+
```json
312+
{
313+
"statusCode": 429,
314+
"headers": {
315+
"Retry-After": "300"
316+
}
317+
}
318+
```
319+
320+
305321
## Disable checking location headers
306322

307323
Some endpoints, services, systems, or APIs return a `202 ACCEPTED` response that doesn't have a `location` header. To avoid having an HTTP action continually check the request status when the `location` header doesn't exist, you can have these options:

0 commit comments

Comments
 (0)