diff options
author | Ben <benmaggacis+gitlab@gmail.com> | 2019-04-11 09:43:09 +0300 |
---|---|---|
committer | Ben <benmaggacis+gitlab@gmail.com> | 2019-04-11 09:43:09 +0300 |
commit | e925dddea740b0152ed2b786f74f94ab53e6c310 (patch) | |
tree | 35a55b74c689bc27a4cfc99ae116e8960c746cb0 | |
parent | 0984637faf778b1174f56688857cd3b2a008c478 (diff) |
Return a `401` error code
-rw-r--r-- | lib/api/import_github.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |