Skip to content

Document that webhook handlers must answer with a 2xx status - #2773

Open
Kakulukian wants to merge 1 commit into
mainfrom
auto-docs/moon-landing-pr-19732
Open

Document that webhook handlers must answer with a 2xx status#2773
Kakulukian wants to merge 1 commit into
mainfrom
auto-docs/moon-landing-pr-19732

Conversation

@Kakulukian

@Kakulukian Kakulukian commented Sep 9, 2026

Copy link
Copy Markdown
Member

Non-2xx responses are now treated as failed deliveries: they are retried and count towards automatic suspension of the webhook.


Note

Low Risk
Documentation-only change with no code or runtime impact.

Overview
Documents Hub webhook delivery acknowledgment in the Delivery and retries section: handlers must return a 2xx status to mark a delivery successful.

Non-2xx responses are now described the same as connection failures—they trigger backoff retries and can contribute to automatic webhook suspension. The doc also recommends returning 2xx immediately and processing work asynchronously when handlers are slow, so deliveries are not marked failed.

Reviewed by Cursor Bugbot for commit 368b61e. Bugbot is set up for automated code reviews on this repo. Configure here.

Non-2xx responses are now treated as failed deliveries: they are retried
and count towards automatic suspension of the webhook.
@Kakulukian
Kakulukian marked this pull request as ready for review September 9, 2026 15:36
@Kakulukian
Kakulukian requested a review from Pierrci September 9, 2026 15:37
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants