Commit e4af5c50 authored by Tiago Botelho's avatar Tiago Botelho

Changes the HTTP error code from Gateway timeout to Service Unavailable

parent 3f14712f
......@@ -36,7 +36,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
case resp
when Net::HTTPSuccess, Net::HTTPMultipleChoices, Net::HTTPUnauthorized,
Net::HTTPNotFound, Net::HTTPGatewayTimeOut
Net::HTTPNotFound, Net::HTTPServiceUnavailable
if resp.content_type == CONTENT_TYPE_JSON
return GitAccessStatus.create_from_json(resp.body, resp.code)
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