Commit e925ddde authored by Ben's avatar Ben

Return a `401` error code

parent 0984637f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment