Inconsistent behavior of Graph Api when on contact get by id

Zarko Petrovic 40 Reputation points

If i query Graph Api with ID of contact that doesn't exist in my Outlook contacts I am getting Error 404:

    "error": {
        "code": "ErrorNonExistentMailbox",
        "message": "No mailbox with such guid."

But if I use ID of the contact that exists in my organization (one of my colleagues Outlook contact's ID) I am getting 503 - Service Unavailable Error :

User's image

That behavior is inconsistent and could cause errors when trying to sync contacts using Graph Api.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
2,103 questions
0 comments No comments
{count} votes