I assume use are using the graph sdk and not the rest api. See docs for getting the response code:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/main/docs/errors.md
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When a Graph API encounters an error, how can I extract the HTTP status code in C#?
I assume use are using the graph sdk and not the rest api. See docs for getting the response code:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/main/docs/errors.md