Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit e815160

Browse files
committed
Use HTTP 400 instead of 500
1 parent cde5cdd commit e815160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/manager/receive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (s *BitbucketWebhookReceiver) Handle(w http.ResponseWriter, r *http.Request
212212
if err != nil {
213213
msg := "Couldn't identify pipeline to run"
214214
s.Logger.Errorf("%s: %s", msg, err)
215-
http.Error(w, msg, http.StatusInternalServerError)
215+
http.Error(w, msg, http.StatusBadRequest)
216216
return
217217
}
218218
s.TriggeredPipelines <- cfg

0 commit comments

Comments
 (0)