Skip to content

Respond with error status when alert creation fails

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

From #194267 (closed)

Currently the backend responds with http status code 204 when alert creation fails https://gitlab.com/gitlab-org/gitlab/blob/b178dceb9564e97f340619c8f8cc3474646965d8/ee/app/controllers/projects/prometheus/alerts_controller.rb#L45. We should respond with an error status and error message instead.

Edited by 🤖 GitLab Bot 🤖