summaryrefslogtreecommitdiff
path: root/app/services/projects/alerting/notify_service.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 15:09:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 15:09:30 +0000
commitc6b3ec3f56fa32a0e0ed3de0d0878d25f1adaddf (patch)
tree967afee9a510ff9dd503ebd83706dc760ec2e3ed /app/services/projects/alerting/notify_service.rb
parent903ccf7c93eb9490c76857bffe744249cc07de09 (diff)
downloadgitlab-ce-c6b3ec3f56fa32a0e0ed3de0d0878d25f1adaddf.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/projects/alerting/notify_service.rb')
-rw-r--r--app/services/projects/alerting/notify_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/projects/alerting/notify_service.rb b/app/services/projects/alerting/notify_service.rb
index d34d6f6a915..1ce1ef7a1cd 100644
--- a/app/services/projects/alerting/notify_service.rb
+++ b/app/services/projects/alerting/notify_service.rb
@@ -46,15 +46,15 @@ module Projects
end
def bad_request
- ServiceResponse.error(message: 'Bad Request', http_status: 400)
+ ServiceResponse.error(message: 'Bad Request', http_status: :bad_request)
end
def unauthorized
- ServiceResponse.error(message: 'Unauthorized', http_status: 401)
+ ServiceResponse.error(message: 'Unauthorized', http_status: :unauthorized)
end
def forbidden
- ServiceResponse.error(message: 'Forbidden', http_status: 403)
+ ServiceResponse.error(message: 'Forbidden', http_status: :forbidden)
end
end
end