From 4ca3f64719f924a483b19ba921f41ac06c3b6a63 Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Mon, 18 Aug 2014 00:25:49 +0200 Subject: Fix labels return code --- lib/api/labels.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/api/labels.rb') 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 -- cgit v1.2.1