ee/lib/gitlab/geo/file_uploader.rb
# A 404 implies the client made a mistake requesting that resource.
# In this case, we know that the resource should exist, so it is a 500 server error.
# We send a special "geo_code" so the secondary can mark the file as synced.
A 404 implies the client made a mistake requesting that resource.
In this case, we know that the resource should exist, so it is a 500 server error.
We send a special "geo_code" so the secondary can mark the file as synced.
A 404 implies the client made a mistake requesting that resource . In this case we know that the resource should exist so it is a 500 server error . We send a special " geo_code " so the secondary can mark the file as synced .
def file_not_found(resource)
        {
          code: :not_found,
          geo_code: FILE_NOT_FOUND_GEO_CODE,
          message: "#{resource.class.name} ##{resource.id} file not found"
        }
      end
def file_not_found ( resource ) { code : :not_found , geo_code : FILE_NOT_FOUND_GEO_CODE , message : "#{resource.class.name} ##{resource.id} file not found" } end
A 404 implies the client made a mistake requesting that resource.
A 404 implies the client made a mistake requesting that resource .
resource
<not_specific>