diff --git a/extension/notification/teams/teams.go b/extension/notification/teams/teams.go index d6e760ff..cea255c4 100644 --- a/extension/notification/teams/teams.go +++ b/extension/notification/teams/teams.go @@ -130,9 +130,9 @@ func (s *sender) Send(event types.EventNotification) error { // Send notification via HTTP POST. resp, err := s.client.Post(s.endpoint, "application/json", bytes.NewBuffer(jsonNotification)) - if err != nil || resp == nil || (resp.StatusCode != 200 && resp.StatusCode != 201) { + if err != nil || resp == nil || (resp.StatusCode != 200 && resp.StatusCode != 201 && resp.StatusCode != 202) { if resp != nil { - return fmt.Errorf("got status %d, expected 200/201", resp.StatusCode) + return fmt.Errorf("got status %d, expected 200/201/202", resp.StatusCode) } return err }