summaryrefslogtreecommitdiff
path: root/lib/api/labels.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-08-18 00:25:49 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-08-18 00:25:49 +0200
commit4ca3f64719f924a483b19ba921f41ac06c3b6a63 (patch)
tree2b7d3d314dc7a417509c983a9a93e793aa0fefb6 /lib/api/labels.rb
parent27cf081e1b0b1df1661aaf0ae6b60b05ef3eb8d8 (diff)
downloadgitlab-ce-4ca3f64719f924a483b19ba921f41ac06c3b6a63.tar.gz
Fix labels return code
Diffstat (limited to 'lib/api/labels.rb')
-rw-r--r--lib/api/labels.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/labels.rb b/lib/api/labels.rb
index c73a4dbe916..bc215310445 100644
--- a/lib/api/labels.rb
+++ b/lib/api/labels.rb
@@ -38,7 +38,7 @@ module API
if label.valid?
present label, with: Entities::Label
else
- render_api_error!(label.errors.full_messages.join(', '), 405)
+ render_api_error!(label.errors.full_messages.join(', '), 400)
end
end
@@ -92,7 +92,7 @@ module API
if label.update(attrs)
present label, with: Entities::Label
else
- render_api_error!(label.errors.full_messages.join(', '), 405)
+ render_api_error!(label.errors.full_messages.join(', '), 400)
end
end
end