Return a `401` error code
This commit is contained in:
parent
0984637faf
commit
e925dddea7
|
@ -22,7 +22,7 @@ module API
|
||||||
end
|
end
|
||||||
|
|
||||||
def provider_unauthorized
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue