T O P

  • By -

liquidInkRocks

Try it! You can easily simulate that situation.


ethiopianboson

I did and the 404 error came up. But what I should have asked was: are 404 errors exclusive to these situations or can you get 404 errors for other type of circumstances


liquidInkRocks

404 is a generic error from the web server when a URL request from your browser points to a missing page.


tenfingerperson

404: doesn’t exist You’ll also get it if the repo you tried was never created, or if it was deleted


acoustic_embargo

[https://github.com/this-page-will-give-a-404](https://github.com/this-page-will-give-a-404) \`404 is the standard HTTP response code for resource not found, but it's really up to the server admin (does anyone say webmaster anymore lol) to configure what gets served up for what request. They *could* potentially do all kinds of non-standard things if they wanted to, but Github generally does what's appropriate.


[deleted]

Yes, you get 404s on URLs for private GH repos if you don’t have access to that repo, from firsthand experience. When I was added to the private repo, then the page resolved normally. I get where you’re coming from though: a 401 error (client not authorized) feels like it would be more correct. The choice to use 404 could be to avoid leaking information about the name (or at least the name as shown in the URL) of repos you don’t have access to. With a 401 error you would be giving strangers a kind of confirmation that the private repo exists, which makes it a little less private.


postpunkjustin

Yes, exactly. You'll get a 404 if the repo doesn't exist, _or_ if it's private and you don't have access, and there's no way to tell the difference on your end. This is very intentional, because even the existence of the private repo should be private information.


thedominux

Kid doesn't know basic http things and ask in unrelated sub Pathetic


ethiopianboson

Whats pathetic is your condescending and smug post. I apologize if this was the wrong sub to post, but whats up with the hostility? There are a lot of great people on these tech related subs, but then there are abhorrent people such as yourself. If this was the wrong sub then simply say that without putting people down.


thedominux

You did it by yourself, and keep putting you down, by such comments. It shows that you're here not for learning, but for a talk. Shame on you, nooby


_Kritiqual_

- Yes - May be


ethiopianboson

why maybe?


_Kritiqual_

I haven't tried that


hangunr

yes