title: Check if git repo is public with HTTP request
body: <p>For my project, I need to know if a git repo is public or not to do some actions.
  I first thought to use HTTP request so I'm using postman and I tried with multiple URLs with HEAD method.</p>
  
  <p>When I'm sending a request, I can't see what in the header can indicate me when it failed or not.</p>
  
  <p>When I send a request to github for a private project, I'm receiving a the status 404 so it's perfect for me cause I know that is a private project.</p>
  
  <p>BUT when I do this for gitlab, I'm receiving the status 200 then I'm redirected.</p>
  
  <p>I would like to know if there is a solution for that.</p>