Code of Conduct
What article on docs.github.com is affected?
Under Check organization membership for a user for Enterprise server 3.8 - the status code I get when using the API is different from the docs.
According to the docs you would expect a 302 status code if requester is not an organization member
However, when making a get request /orgs/{org}/members/{username} (where org is an organization I am not a member of and username is that of a user in the organization), I get a 404 status code, along with the message User does not exist or is not a member of the organization - which leads me to believe that the 404 status code is the expected one.
What part(s) of the article would you like to see updated?
Update the HTTP response status codes for "Check organization membership for a user" in the docs.
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
Under Check organization membership for a user for Enterprise server 3.8 - the status code I get when using the API is different from the docs.
According to the docs you would expect a 302 status code if
requester is not an organization memberHowever, when making a get request /orgs/{org}/members/{username} (where
orgis an organization I am not a member of andusernameis that of a user in the organization), I get a 404 status code, along with the messageUser does not exist or is not a member of the organization- which leads me to believe that the 404 status code is the expected one.What part(s) of the article would you like to see updated?
Update the HTTP response status codes for "Check organization membership for a user" in the docs.
Additional information
No response