From e925dddea740b0152ed2b786f74f94ab53e6c310 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 11 Apr 2019 06:43:09 +0000 Subject: [PATCH] Return a `401` error code --- lib/api/import_github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/import_github.rb b/lib/api/import_github.rb index 1975f894440..e7504051808 100644 --- a/lib/api/import_github.rb +++ b/lib/api/import_github.rb @@ -22,7 +22,7 @@ module API end def provider_unauthorized - error!("Access denied to your #{Gitlab::ImportSources.title(provider.to_s)} account.", 500) + error!("Access denied to your #{Gitlab::ImportSources.title(provider.to_s)} account.", 401) end end