Skip to the content.

Error Content

Objectives

Requirements

GraphServiceException or GraphServiceError MUST support all potential OData error properties. See Microsoft Graph error JSON for more information. The following is an example GraphServiceException response payload.

{
    "error": {
        "code": "BadRequest",
        "message": "Resource not found for the segment 'mef'.",
        "innerError": {
            "date": "2021-07-02T01:40:19",
            "request-id": "1a0ffbc0-086f-4e8f-93f9-bf99881c65f6",
            "client-request-id": "225aed2b-cf4a-d456-b313-16ab196c2364"
        }
    }
}

Reference service error implementations

Reference client error implementations