Update error message for pipeline events on webhook
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
At the moment, triggering a webhook with pipeline events return HTTP 403 {"message":"403 Forbidden"} which is not helpful. This creates confusion from a user perspective that suggests if permissions were set correctly, it should work which is not the case.
Proposal
The proposal here is that we should return a HTTP 400 {"message":"400 Bad Request"} message with an additional note of webhook cannot be triggered from pipeline event. Since this operation isn't allowed regardless of permissions, it would provide a more informative message to the user as detailed in this issue. Docs should also be updated to reflect this change.
Related Issues Table
| Group | Issue Link | Notes |
|---|---|---|
| backend | Pipeline events on webhook give 403 error | Cancelled - Not wanted to create inconsistency between SM and .com |
| backend |
Links/References
Edited by 🤖 GitLab Bot 🤖