Skip to content

Standardise the suggested webhook message validation return code #42228

@bensgilbert

Description

@bensgilbert

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries
https://github.com/github/docs/blob/main/content/webhooks/using-webhooks/validating-webhook-deliveries.md

What part(s) of the article would you like to see updated?

When the webhook message can't be validated:
the ruby example halts with a status code of 500
the python example raises an http exception with a status code of 403
the javascript example sends a status code of 401

the behaviour difference in each example is confusing to new developers, which status code should be used when the payload can't be verified?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions