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