github / GitHub REST API
GitHub REST API: 404 for a Resource That Exists
GitHub can return 404 instead of 403 for a private resource when the request is not authenticated, to avoid revealing that private repositories exist.
Visible symptoms
- HTTP 404 for a repository or resource you know exists.
Safe verification and recovery
Check authentication
Confirm the request is authenticated.
Check token scopes and owners
Check the token's scopes and permissions, the token owner, the resource owner, and whether the token is expired or revoked.
Matching evidence and limitations
Reported error signals
Matches the documented error signal; it identifies the documented case, not the exact root cause of your request.
The local analyzer never executes suggested commands or treats a possible match as certainty.
Verified source list
Analyze a redacted excerpt locally All GitHub REST API errors