The reference at https://docs.github.com/en/rest/reference/repos#check-if-a-user-is-a-repository-collaborator only lists return codes 200 and 404.
However, I did the following observation:
- User is not a collaborator: 403 (forbidden)
- User is a collaborator, set to public visibility: 200 (ok)
- User is a collaborator, but set to private visibility: 404
Is this correct? Then the docs should be updated, or am I missing something here?