Return a 401 error code

This commit is contained in:
Ben 2019-04-11 06:43:09 +00:00
parent 0984637faf
commit e925dddea7

View file

@ -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